From c02a1b06766c23ebe9a3680de1e8ce9f313a0636 Mon Sep 17 00:00:00 2001 From: Emmanuel Pelletier Date: Wed, 15 May 2024 08:03:54 +0200 Subject: [PATCH] website: fix wrong service urls in services json api endpoint --- website/src/pages/api/v1/services-local.json.ts | 2 +- website/src/pages/api/v1/services.json.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/pages/api/v1/services-local.json.ts b/website/src/pages/api/v1/services-local.json.ts index 5507413..f1c9e30 100644 --- a/website/src/pages/api/v1/services-local.json.ts +++ b/website/src/pages/api/v1/services-local.json.ts @@ -9,7 +9,7 @@ export async function GET({ url }: APIContext) { .map((service) => ({ id: service.id, name: service.name, - url: new URL(`/services/${service.id}`, url).toString(), + url: service.url, })), ), ) diff --git a/website/src/pages/api/v1/services.json.ts b/website/src/pages/api/v1/services.json.ts index 3f9b0c8..e9554cb 100644 --- a/website/src/pages/api/v1/services.json.ts +++ b/website/src/pages/api/v1/services.json.ts @@ -9,7 +9,7 @@ export async function GET({ url }: APIContext) { .map((service) => ({ id: service.id, name: service.name, - url: new URL(`/services/${service.id}`, url).toString(), + url: service.url, })), ), )