aboutsummaryrefslogtreecommitdiff
path: root/src/server/index.ts
diff options
context:
space:
mode:
authorSam Wilkins <abdullah_ahmed@brown.edu>2019-03-12 17:27:06 -0400
committerSam Wilkins <abdullah_ahmed@brown.edu>2019-03-12 17:27:06 -0400
commit18414effd8eb1297588acd6afa0fb98d9c8dd31d (patch)
tree02b6e20a40653fef4011bbc967ea9518185c89d1 /src/server/index.ts
parent884647be52cf6b3c7e3132dce7d9133875d9a9cd (diff)
Bug fixes and cleanup
Diffstat (limited to 'src/server/index.ts')
-rw-r--r--src/server/index.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/server/index.ts b/src/server/index.ts
index 6f6f620d8..d710ac875 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -139,9 +139,7 @@ addSecureRoute(Method.POST, RouteStore.upload, (user, req, res) => {
// anyone attempting to navigate to localhost at this port will
// first have to login
addSecureRoute(Method.GET, RouteStore.root, (user, req, res) => {
-
-}, res => {
- res.send()
+ res.redirect(RouteStore.home);
});
// YAY! SHOW THEM THEIR WORKSPACES NOW
@@ -154,7 +152,7 @@ addSecureRoute(Method.GET, RouteStore.getActiveWorkspace, (user, req, res) => {
});
addSecureRoute(Method.GET, RouteStore.getAllWorkspaces, (user, req, res) => {
- res.send(JSON.stringify(user.allWorkspaceIds as Array<String>));
+ res.send(JSON.stringify(user.allWorkspaceIds));
});
addSecureRoute(Method.POST, RouteStore.setActiveWorkspace, (user, req) => {