From 84207fd6d861d0cb0b3b12ab994fe812816462cc Mon Sep 17 00:00:00 2001 From: ajdj100 Date: Sun, 17 Aug 2025 19:01:44 -0400 Subject: [PATCH] tweaked route formatting --- api/index.js | 2 +- ui/src/api/application.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/index.js b/api/index.js index b54f882..42fd907 100644 --- a/api/index.js +++ b/api/index.js @@ -21,7 +21,7 @@ app.post('/application', (req, res) => { res.send('Application received') }); -app.get('/me/application', (req, res) => { +app.get('/application/me', (req, res) => { if (application) { let data = { "app": application, diff --git a/ui/src/api/application.ts b/ui/src/api/application.ts index fd069fd..707c05f 100644 --- a/ui/src/api/application.ts +++ b/ui/src/api/application.ts @@ -23,7 +23,7 @@ type ApplicationFull = Partial<{ const addr = "localhost:3000" export async function loadApplication(): Promise { - const res = await fetch(`http://${addr}/me/application`) + const res = await fetch(`http://${addr}/application/me`) if (res.status === 204) return null if (!res.ok) throw new Error('Failed to load application') const json = await res.json()