fix: remove requireAdmin and add test endpoint
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user