mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-06 11:30:13 +08:00
12 lines
312 B
JavaScript
12 lines
312 B
JavaScript
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,
|
|
}
|