1
0
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:
2022-03-21 10:37:55 +00:00
parent a7808458f8
commit bd662661ee
3 changed files with 5 additions and 3 deletions

View File

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