We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63f3c04 commit 26f8216Copy full SHA for 26f8216
src/node/api/server.ts
@@ -39,16 +39,15 @@ export class ApiHttpProvider extends HttpProvider {
39
return this.login(request)
40
}
41
break
42
- default:
43
- if (!this.authenticated(request)) {
44
- return { code: HttpCode.Unauthorized }
45
- }
46
- switch (route.base) {
47
- case ApiEndpoint.applications:
48
- return this.applications()
49
- case ApiEndpoint.files:
50
- return this.files()
51
+ }
+ if (!this.authenticated(request)) {
+ return { code: HttpCode.Unauthorized }
+ switch (route.base) {
+ case ApiEndpoint.applications:
+ return this.applications()
+ case ApiEndpoint.files:
+ return this.files()
52
53
return undefined
54
0 commit comments