mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-26 15:57:50 +01:00
fix error handling for Fetch API
This commit is contained in:
@@ -113,7 +113,7 @@ const ServerBootstrapper = {
|
||||
});
|
||||
|
||||
// API endpoints
|
||||
app.use('/api/games', standardRateLimit, require('../api/RoomsAPI'));
|
||||
app.use('/api/games', standardRateLimit, require('../api/GamesAPI'));
|
||||
app.use('/api/admin', (req, res, next) => {
|
||||
if (isAuthorized(req)) {
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user