commit d90c6000b71aca5fad626332b2d68e393001fdd2
parent e639c551ad5d70257fd03fbcab63cffd30e748ad
Author: Florian Dold <florian@dold.me>
Date: Sat, 18 Jul 2026 11:23:23 +0200
util: fix wrong endpoint path
Diffstat:
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/packages/taler-util/src/http-client/merchant.ts b/packages/taler-util/src/http-client/merchant.ts
@@ -3481,8 +3481,13 @@ export class TalerMerchantInstanceHttpClient {
token: AccessToken,
id: string,
body: TalerMerchantApi.GroupAddRequest,
- ) {
- const url = new URL(`private/reports/${id}`, this.baseUrl);
+ ): Promise<
+ | OperationOk<undefined>
+ | OperationFail<HttpStatusCode.NotFound>
+ | OperationFail<HttpStatusCode.Unauthorized>
+ | OperationFail<HttpStatusCode.Conflict>
+ > {
+ const url = new URL(`private/groups/${id}`, this.baseUrl);
const headers: Record<string, string> = {};
headers.Authorization = makeBearerTokenAuthHeader(token);