feat(server): add tsoa to generate api swaggers

This commit is contained in:
dayjoy
2025-09-26 12:20:02 +08:00
parent 3ef3fcbff9
commit 9551f6aab9
11 changed files with 320 additions and 439 deletions

18
packages/server/tsoa.json Normal file
View File

@@ -0,0 +1,18 @@
{
"entryFile": "src/index.ts",
"noImplicitAdditionalProperties": "throw-on-extras",
"controllerPathGlobs": ["src/controllers/**/*Controller.ts"],
"spec": {
"outputDirectory": "build",
"specVersion": 3,
"name": "Egret App Server",
"description": "Egret App Server API Documentation",
"version": "1.0.0",
"basePath": "/",
"schemes": ["http", "https"],
"host": "localhost:3005"
},
"routes": {
"routesDir": "src/routes"
}
}