fix api route
This commit is contained in:
parent
0e22240d11
commit
6381038c90
@ -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;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user