fix tsoa config

This commit is contained in:
tw-blue
2025-11-29 17:43:21 +01:00
parent 9f1e30e6fa
commit da782c89e0
+3 -15
View File
@@ -1,9 +1,7 @@
{ {
"entryFile": "packages/api/src/index.ts", "entryFile": "packages/api/src/index.ts",
"noImplicitAdditionalProperties": "throw-on-extras", "noImplicitAdditionalProperties": "throw-on-extras",
"controllerPathGlobs": [ "controllerPathGlobs": ["packages/api/src/controllers/**/*.ts"],
"packages/api/src/controllers/**/*.ts"
],
"routes": { "routes": {
"routesDir": "packages/api/src/generated", "routesDir": "packages/api/src/generated",
"middleware": "express", "middleware": "express",
@@ -11,7 +9,7 @@
"middlewareTemplate": "routes.hbs" "middlewareTemplate": "routes.hbs"
}, },
"spec": { "spec": {
"outputDirectory": "packages/frontend/src/generated-api", "outputDirectory": "packages/frontend/src/app/generated-api",
"specVersion": 3, "specVersion": 3,
"securityDefinitions": { "securityDefinitions": {
"bearerAuth": { "bearerAuth": {
@@ -22,16 +20,7 @@
} }
}, },
"basePath": "/api/v1", "basePath": "/api/v1",
"servers": [ "servers": ["localhost:8080/api/v1", "tkd-api.toni714.de/api/v1"],
{
"url": "https://localhost:8080/api/v1",
"description": "Development server"
},
{
"url": "https://tcc-member-db-4bfaysdsja-ew.a.run.app/api/v1",
"description": "Production server"
}
],
"info": { "info": {
"title": "Tcc Member API", "title": "Tcc Member API",
"description": "API for the TCC Member Database", "description": "API for the TCC Member Database",
@@ -44,4 +33,3 @@
} }
} }
} }