mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-02 05:59:30 +00:00
Fixed validation middlewares so they they run against all HTTP request types
This commit is contained in:
@@ -49,7 +49,7 @@ router.get('/dashboard', async (req, res) => {
|
||||
});
|
||||
});
|
||||
|
||||
router.get(/user\/(.{36})(\/.*)?/, async (req, res, next) => {
|
||||
router.all(/user\/(.{36})(\/.*)?/, async (req, res, next) => {
|
||||
let u;
|
||||
try {
|
||||
u = await new User(null, req.params[0]);
|
||||
|
||||
Reference in New Issue
Block a user