Files
MTranServer/tsoa.json
2026-01-10 17:06:29 +08:00

41 lines
896 B
JSON

{
"entryFile": "src/main.ts",
"noImplicitAdditionalProperties": "throw-on-extras",
"controllerPathGlobs": [
"src/controllers/**/*.ts"
],
"spec": {
"outputDirectory": "src/generated",
"specVersion": 3,
"basePath": "/",
"spec": {
"info": {
"title": "MTranServer API",
"version": "4.0.28",
"description": "Translation server API",
"license": {
"name": "Apache-2.0"
}
},
"servers": [
{
"url": "http://localhost:8989",
"description": "Local server"
}
],
"securityDefinitions": {
"api_token": {
"type": "apiKey",
"name": "Authorization",
"in": "header"
}
}
}
},
"routes": {
"routesDir": "src/generated",
"middleware": "express",
"authenticationModule": "src/middleware/auth.ts"
}
}