update
This commit is contained in:
BIN
assets/saude/a66fb70a-d275-466d-8211-0d27a74491c6.jpg
Normal file
BIN
assets/saude/a66fb70a-d275-466d-8211-0d27a74491c6.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 99 KiB |
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user