tweaked route formatting

This commit is contained in:
2025-08-17 19:01:44 -04:00
parent fe12c820ee
commit 84207fd6d8
2 changed files with 2 additions and 2 deletions

View File

@@ -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,

View File

@@ -23,7 +23,7 @@ type ApplicationFull = Partial<{
const addr = "localhost:3000"
export async function loadApplication(): Promise<ApplicationFull | null> {
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()