From d3e37e366fec931bc6dc52624f672d4cd4c0cf63 Mon Sep 17 00:00:00 2001 From: Will Freeman Date: Mon, 2 Feb 2026 09:11:53 -0700 Subject: [PATCH] strip /api --- api/server.ts | 6 +++--- webapp/src/services/apiService.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/server.ts b/api/server.ts index 458ff2b..c4df6f4 100644 --- a/api/server.ts +++ b/api/server.ts @@ -58,7 +58,7 @@ const start = async () => { process.on('SIGINT', shutdown); process.on('SIGTERM', shutdown); - server.get('/api/geocode', { + server.get('/geocode', { schema: { querystring: { type: 'object', @@ -78,7 +78,7 @@ const start = async () => { return result; }); - server.get('/api/sponsors/github', { + server.get('/sponsors/github', { schema: { querystring: { type: 'object', @@ -97,7 +97,7 @@ const start = async () => { return result; }); - server.head('/api/healthcheck', async (request, reply) => { + server.head('/healthcheck', async (request, reply) => { reply.status(200).send(); }); diff --git a/webapp/src/services/apiService.ts b/webapp/src/services/apiService.ts index 9664a82..c46e0f0 100644 --- a/webapp/src/services/apiService.ts +++ b/webapp/src/services/apiService.ts @@ -48,7 +48,7 @@ export class BoundingBox implements BoundingBoxLiteral { } const apiService = axios.create({ - baseURL: window.location.hostname === "localhost" ? "http://localhost:3000/api" : "/api", + baseURL: window.location.hostname === "localhost" ? "http://localhost:3000" : "https://api.deflock.org", headers: { "Content-Type": "application/json", },