chore: generate routes and swagger

This commit is contained in:
Methapon2001 2023-11-27 12:04:59 +07:00
parent ece51deb29
commit 732a4b3989
No known key found for this signature in database
GPG key ID: 849924FEF46BD132
2 changed files with 24 additions and 12 deletions

View file

@ -291,7 +291,7 @@ export function RegisterRoutes(app: Router) {
}); });
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
app.post('/cabinet/:cabinetName/drawer/:drawerName/folder/:folderName/file', app.post('/cabinet/:cabinetName/drawer/:drawerName/folder/:folderName/file',
authenticateMiddleware([{"bearerAuth":[]}]), authenticateMiddleware([{"bearerAuth":["admin"]}]),
...(fetchMiddlewares<RequestHandler>(FileController)), ...(fetchMiddlewares<RequestHandler>(FileController)),
...(fetchMiddlewares<RequestHandler>(FileController.prototype.uploadFile)), ...(fetchMiddlewares<RequestHandler>(FileController.prototype.uploadFile)),
@ -348,7 +348,7 @@ export function RegisterRoutes(app: Router) {
}); });
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
app.patch('/cabinet/:cabinetName/drawer/:drawerName/folder/:folderName/file/:fileName', app.patch('/cabinet/:cabinetName/drawer/:drawerName/folder/:folderName/file/:fileName',
authenticateMiddleware([{"bearerAuth":[]}]), authenticateMiddleware([{"bearerAuth":["admin"]}]),
...(fetchMiddlewares<RequestHandler>(FileController)), ...(fetchMiddlewares<RequestHandler>(FileController)),
...(fetchMiddlewares<RequestHandler>(FileController.prototype.updateFile)), ...(fetchMiddlewares<RequestHandler>(FileController.prototype.updateFile)),
@ -379,7 +379,7 @@ export function RegisterRoutes(app: Router) {
}); });
// WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa // WARNING: This file was auto-generated with tsoa. Please do not modify it. Re-run tsoa to re-generate this file: https://github.com/lukeautry/tsoa
app.delete('/cabinet/:cabinetName/drawer/:drawerName/folder/:folderName/file/:fileName', app.delete('/cabinet/:cabinetName/drawer/:drawerName/folder/:folderName/file/:fileName',
authenticateMiddleware([{"bearerAuth":[]}]), authenticateMiddleware([{"bearerAuth":["admin"]}]),
...(fetchMiddlewares<RequestHandler>(FileController)), ...(fetchMiddlewares<RequestHandler>(FileController)),
...(fetchMiddlewares<RequestHandler>(FileController.prototype.deleteFile)), ...(fetchMiddlewares<RequestHandler>(FileController.prototype.deleteFile)),

View file

@ -539,7 +539,7 @@
"operationId": "UploadFile", "operationId": "UploadFile",
"responses": { "responses": {
"201": { "201": {
"description": "", "description": "สำเร็จ",
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
@ -607,6 +607,9 @@
} }
} }
} }
},
"404": {
"description": "ไม่พบลิ้นชัก"
} }
}, },
"tags": [ "tags": [
@ -614,7 +617,9 @@
], ],
"security": [ "security": [
{ {
"bearerAuth": [] "bearerAuth": [
"admin"
]
} }
], ],
"parameters": [ "parameters": [
@ -682,7 +687,7 @@
"operationId": "GetFile", "operationId": "GetFile",
"responses": { "responses": {
"200": { "200": {
"description": "", "description": "สำเร็จ",
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
@ -732,7 +737,7 @@
"operationId": "UpdateFile", "operationId": "UpdateFile",
"responses": { "responses": {
"200": { "200": {
"description": "", "description": "สำเร็จ",
"content": { "content": {
"application/json": { "application/json": {
"schema": { "schema": {
@ -753,6 +758,9 @@
} }
} }
} }
},
"404": {
"description": "ไม่พบตำแหน่งที่ต้องการสร้างแฟ้ม"
} }
}, },
"tags": [ "tags": [
@ -760,7 +768,9 @@
], ],
"security": [ "security": [
{ {
"bearerAuth": [] "bearerAuth": [
"admin"
]
} }
], ],
"parameters": [ "parameters": [
@ -829,7 +839,7 @@
"operationId": "DeleteFile", "operationId": "DeleteFile",
"responses": { "responses": {
"200": { "200": {
"description": "" "description": "สำเร็จ"
} }
}, },
"tags": [ "tags": [
@ -837,7 +847,9 @@
], ],
"security": [ "security": [
{ {
"bearerAuth": [] "bearerAuth": [
"admin"
]
} }
], ],
"parameters": [ "parameters": [
@ -973,7 +985,7 @@
} }
}, },
"tags": [ "tags": [
"File" "Download"
], ],
"security": [], "security": [],
"parameters": [ "parameters": [
@ -1067,7 +1079,7 @@
"description": "สำเร็จ" "description": "สำเร็จ"
}, },
"404": { "404": {
"description": "ไม่พบของแฟ้ม" "description": "ไม่พบตำแหน่งที่ต้องการสร้างแฟ้ม"
}, },
"500": { "500": {
"description": "เกิดข้อผิดพลาดกับระบบจัดการไฟล์" "description": "เกิดข้อผิดพลาดกับระบบจัดการไฟล์"