mirror of
https://github.com/whyour/qinglong.git
synced 2025-09-11 21:33:06 +08:00
fix query mistakes
This commit is contained in:
parent
4fa3a34d8f
commit
410931efac
|
@ -11,13 +11,12 @@ export default (app: Router) => {
|
|||
route.get(
|
||||
'/',
|
||||
celebrate({
|
||||
body: Joi.array().items(
|
||||
query:
|
||||
Joi.object({
|
||||
searchValue: Joi.string().optional().allow(''),
|
||||
type: Joi.string().optional().allow(''),
|
||||
status: Joi.string().optional().allow(''),
|
||||
}),
|
||||
),
|
||||
}),
|
||||
async (req: Request, res: Response, next: NextFunction) => {
|
||||
const logger: Logger = Container.get('logger');
|
||||
|
|
Loading…
Reference in New Issue
Block a user