fix error handling for Fetch API

This commit is contained in:
AlecM33
2023-08-13 18:47:38 -04:00
parent 0b7dd9f4d7
commit da0d69062e
9 changed files with 81 additions and 55 deletions

View File

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