This commit is contained in:
Shibly Teknologi Solusi
2026-05-23 00:44:16 +07:00
parent f4fb347398
commit 990ba11372
2 changed files with 7 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

View File

@ -161,10 +161,17 @@ export class FileController {
type: 'string',
description: 'File name'
}
#swagger.parameters['token'] = {
in: 'query',
required: true,
type: 'string',
description: 'Token'
}
*/
try {
const schema = Joi.object({
name: Joi.string().required().label("File Name"),
token: Joi.string().required().label("Token"),
});
const param: { name: string } = await schema.validateAsync(req.query);