diff --git a/src/libs/client.ts b/src/libs/client.ts index 24ef7544..f0188dad 100644 --- a/src/libs/client.ts +++ b/src/libs/client.ts @@ -21,7 +21,7 @@ export class BaseRestClient { this.registry = registry; } async request(request: Request, args: Record, query = '') { - let url = `${this.endpoint}${request.url}${query}`; + let url = `${request.url.startsWith("http")?'':this.endpoint}${request.url}${query}`; Object.keys(args).forEach((k) => { url = url.replace(`{${k}}`, args[k] || ''); });