feat(server): add error handler & refactor controllers

This commit is contained in:
dayjoy
2025-09-26 15:50:37 +08:00
parent 9551f6aab9
commit d346a9f2f4
13 changed files with 173 additions and 172 deletions

View File

@@ -1,7 +1,7 @@
{
"entryFile": "src/index.ts",
"noImplicitAdditionalProperties": "throw-on-extras",
"controllerPathGlobs": ["src/controllers/**/*Controller.ts"],
"controllerPathGlobs": ["src/controllers/**/*Controller.ts", "src/types/**/*.ts"],
"spec": {
"outputDirectory": "build",
"specVersion": 3,
@@ -13,6 +13,7 @@
"host": "localhost:3005"
},
"routes": {
"routesDir": "src/routes"
"routesDir": "src/routes",
"authenticationModule": "src/middleware/auth.ts"
}
}