fix wildcard for auth middleware
This commit is contained in:
@@ -11,7 +11,7 @@ router.use('/', register)
|
|||||||
|
|
||||||
//auth middleware
|
//auth middleware
|
||||||
router.post(
|
router.post(
|
||||||
'/:serverId',
|
'/:serverId*',
|
||||||
header('authorization')
|
header('authorization')
|
||||||
.exists({ checkFalsy: true })
|
.exists({ checkFalsy: true })
|
||||||
.withMessage('Missing Authorization Header')
|
.withMessage('Missing Authorization Header')
|
||||||
|
|||||||
Reference in New Issue
Block a user