mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
8 lines
269 B
TypeScript
8 lines
269 B
TypeScript
import { check } from 'express-validator'
|
|
import { noError } from '../../middleware/validator.js'
|
|
|
|
export const checkQuestId = () =>
|
|
check('questId').notEmpty().isString().isLowercase().isLength({ max: 64 })
|
|
|
|
export const questIdValidator = [checkQuestId(), noError]
|