0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 14:12:40 +00:00

update based on feedback

This commit is contained in:
Charlie Humphreys
2023-01-20 23:07:24 -06:00
parent 385bee964d
commit 7755affa1e
10 changed files with 18 additions and 28 deletions

View File

@@ -336,7 +336,7 @@ If you believe you should have access to this brew, ask the file owner to invite
}
};
router.use('/api', require('./middleware.js').versionMismatch);
router.use('/api', require('./middleware/check-client-version.js'));
router.post('/api', asyncHandler(api.newBrew));
router.put('/api/:id', asyncHandler(api.getBrew('edit', true)), asyncHandler(api.updateBrew));
router.put('/api/update/:id', asyncHandler(api.getBrew('edit', true)), asyncHandler(api.updateBrew));