-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtsoa.json
35 lines (35 loc) · 940 Bytes
/
tsoa.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"entryFile": "./src/routes.ts",
"noImplicitAdditionalProperties": "throw-on-extras",
"controllerPathGlobs": ["./src/controller/**/*-controller.ts"],
"spec": {
"outputDirectory": "./dist",
"host": "",
"basePath": "/api",
"specVersion": 3,
"securityDefinitions": {
"github_token": {
"type": "apiKey",
"in": "header",
"name": "X-Hub-Signature"
},
"role": {
"type": "oauth2",
"authorizationUrl": "/api/login",
"flow": "implicit",
"scopes": {
"user": "Allow connected user only",
"same-user": "Allow connected user only with same uid on url path",
"admin": "Allow connected admin user only"
}
}
}
},
"routes": {
"basePath": "/api",
"routesDir": "./src",
"middleware": "express",
"iocModule": "src/container",
"authenticationModule": "src/security/authentication"
}
}