-
Notifications
You must be signed in to change notification settings - Fork 2
/
tsoa.json
38 lines (38 loc) · 1.19 KB
/
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
36
37
38
{
"entryFile": "src/server.ts",
"noImplicitAdditionalProperties": "throw-on-extras",
"controllerPathGlobs": ["src/controllers/**/*.ts"],
"spec": {
"securityDefinitions": {
"basic": {
"type": "apiKey",
"name": "authorization",
"in": "header"
},
"google_oauth": {
"type": "oauth2",
"description": "Google OAuth 2.0",
"flow": "accessCode",
"authorizationUrl": "https://accounts.google.com/o/oauth2/auth",
"tokenUrl": "https://oauth2.googleapis.com/token",
"refreshUrl": "http://localhost:8000/api/auth/callback",
"scopes": {
"https://www.googleapis.com/auth/userinfo.email": "Access user email address",
"https://www.googleapis.com/auth/userinfo.profile": "Access user profile info",
"https://www.googleapis.com/auth/contacts.readonly": "Access contacts"
}
}
},
"basePath": "/api",
"outputDirectory": "src",
"specVersion": 3
},
"routes": {
"authenticationModule": "./src/middlewares/authentication.ts",
"basePath": "/api",
"routesDir": "src"
},
"compilerOptions": {
"typeRoots": ["./node_modules/@types", "./src/types"]
}
}