fix: remove requireAdmin and add test endpoint

This commit is contained in:
2026-04-02 16:43:17 +00:00
parent f73b011015
commit 2db47e1203

View File

@@ -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'));