Skip to content

Commit

Permalink
mgr/dashboard: RGW is not working if an URL prefix is defined
Browse files Browse the repository at this point in the history
Fixes https://tracker.ceph.com/issues/25068

This is the backport of #23200. It's not possible to cherry-pick it because the code has been changed too much from Mimic -> Nautilus.

Signed-off-by: Volker Theile <vtheile@suse.com>
  • Loading branch information
votdev committed Jul 25, 2018
1 parent 13b25fd commit c94cf73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -9,7 +9,7 @@ import { Observable } from 'rxjs/Observable';
@Injectable()
export class RgwBucketService {

private url = '/api/rgw/proxy/bucket';
private url = 'api/rgw/proxy/bucket';

constructor(private http: HttpClient) { }

Expand Down Expand Up @@ -49,7 +49,7 @@ export class RgwBucketService {
'bucket': bucket,
'uid': uid
};
return this.http.post('/api/rgw/bucket', body);
return this.http.post('api/rgw/bucket', body);
}

update(bucketId: string, bucket: string, uid: string) {
Expand Down
Expand Up @@ -9,7 +9,7 @@ import { Observable } from 'rxjs/Observable';
@Injectable()
export class RgwUserService {

private url = '/api/rgw/proxy/user';
private url = 'api/rgw/proxy/user';

constructor(private http: HttpClient) { }

Expand All @@ -35,7 +35,7 @@ export class RgwUserService {
* @return {Observable<string[]>}
*/
enumerate() {
return this.http.get('/api/rgw/proxy/metadata/user');
return this.http.get('api/rgw/proxy/metadata/user');
}

get(uid: string) {
Expand Down

0 comments on commit c94cf73

Please sign in to comment.