From 2db47e12039f6e05189d461ec497293c02607c0d Mon Sep 17 00:00:00 2001 From: admtracksteel Date: Thu, 2 Apr 2026 16:43:17 +0000 Subject: [PATCH] fix: remove requireAdmin and add test endpoint --- src/server/app.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/server/app.ts b/src/server/app.ts index 63b28a2..35539db 100644 --- a/src/server/app.ts +++ b/src/server/app.ts @@ -69,6 +69,10 @@ app.get('/health', (req, res) => { res.json({ status: 'ok', timestamp: new Date(), auth: 'logto' }); }); +app.get('/api/test', (req, res) => { + res.json({ status: 'ok', message: 'Test endpoint working' }); +}); + // SPA fallback - must be last app.use((req, res, next) => { res.sendFile(path.join(distPath, 'index.html'));