feat: delete "deleteSession" method, validate questId and sessionId

This commit is contained in:
wancat authored and Lin, Hung-Shin committed 2023-11-14 10:44:52 +08:00
1 parent a7422853fa
commit 5df4967a85
12 files changed
+67 -99

No files matched your search

@@ -0,0 +1,11 @@
import { check } from 'express-validator'
import { noError } from '../../middleware/validator.js'
export const checkQuestId = () =>
check('questId').notEmpty().isString().isAlphanumeric().isLength({ max: 64 })
export const questIdValidator = [checkQuestId(), noError]
export default {
questIdValidator,
}