fix api route

This commit is contained in:
chris 2025-10-09 21:39:25 -04:00
parent 0e22240d11
commit 6381038c90
2 changed files with 2 additions and 3 deletions

View File

@ -204,8 +204,7 @@ function setupRoutes() {
next(); next();
}); });
}; };
app.post('/subscribe', authenticateToken, async (req, res) => { app.post('/api/subscribe', authenticateToken, async (req, res) => { try {
try {
const subscription = req.body; const subscription = req.body;
const userId = req.user.id; const userId = req.user.id;