Skip to content

Commit

Permalink
Fixed URI concatenation error (Dashboard)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahoo-Wang committed May 15, 2021
1 parent 4e572c5 commit 04793cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dashboard/src/app/api/config/ConfigClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ export class ConfigClient {
}

rollback(namespace: string, configId: string, targetVersion: number): Observable<boolean> {
const apiUrl = `${this.getConfigApiUrl(namespace, configId)} / to /${targetVersion}`;
const apiUrl = `${this.getConfigApiUrl(namespace, configId)}/to/${targetVersion}`;
return this.httpClient.put<boolean>(apiUrl, null);
}

getConfigVersions(namespace: string, configId: string): Observable<ConfigVersionDto[]> {
const apiUrl = `${this.getConfigApiUrl(namespace, configId)} / versions`;
const apiUrl = `${this.getConfigApiUrl(namespace, configId)}/versions`;
return this.httpClient.get<ConfigVersionDto[]>(apiUrl);
}

getConfigHistory(namespace: string, configId: string, version: number): Observable<ConfigHistoryDto> {
const apiUrl = `${this.getConfigApiUrl(namespace, configId)} / versions /${version}`;
const apiUrl = `${this.getConfigApiUrl(namespace, configId)}/versions/${version}`;
return this.httpClient.get<ConfigHistoryDto>(apiUrl);
}

Expand Down

0 comments on commit 04793cc

Please sign in to comment.