Archived
1
0

Implement the actual proxy

This commit is contained in:
Asher
2020-03-23 18:02:31 -05:00
parent 2086648c87
commit 8aa5675ba2
9 changed files with 177 additions and 30 deletions

View File

@ -128,7 +128,8 @@ export class VscodeHttpProvider extends HttpProvider {
switch (route.base) {
case "/":
if (route.requestPath !== "/index.html") {
// Only serve this at the root.
if (route.requestPath && route.requestPath !== "/index.html") {
throw new HttpError("Not found", HttpCode.NotFound)
} else if (!this.authenticated(request)) {
return { redirect: "/login", query: { to: this.options.base } }