step 5.3: done
This commit is contained in:
@@ -57,6 +57,7 @@ function createApp() {
|
||||
app.get('/api/inventory', requireAuth, inventoryRoutes.getInventory);
|
||||
app.post('/api/inventory/equip', requireAuth, inventoryRoutes.postEquip);
|
||||
app.post('/api/inventory/unequip', requireAuth, inventoryRoutes.postUnequip);
|
||||
app.post('/api/inventory/use', requireAuth, inventoryRoutes.postUse);
|
||||
|
||||
// Central error handler
|
||||
app.use((err, _req, res, _next) => {
|
||||
|
||||
Reference in New Issue
Block a user