Move VS Code to the root

This commit is contained in:
Asher
2020-03-02 12:43:02 -06:00
parent c146457de4
commit 069c5230cd
20 changed files with 297 additions and 266 deletions

View File

@@ -17,7 +17,7 @@ interface LoginPayload {
* Login HTTP provider.
*/
export class LoginHttpProvider extends HttpProvider {
public async handleRequest(route: Route, request: http.IncomingMessage): Promise<HttpResponse | undefined> {
public async handleRequest(route: Route, request: http.IncomingMessage): Promise<HttpResponse> {
if (this.options.auth !== AuthType.Password) {
throw new HttpError("Not found", HttpCode.NotFound)
}
@@ -42,7 +42,7 @@ export class LoginHttpProvider extends HttpProvider {
}
}
return undefined
throw new HttpError("Not found", HttpCode.NotFound)
}
public async getRoot(route: Route, error?: Error): Promise<HttpResponse> {