diff options
author | Stanley Yip <stanley_yip@brown.edu> | 2020-02-12 21:54:58 -0500 |
---|---|---|
committer | Stanley Yip <stanley_yip@brown.edu> | 2020-02-12 21:54:58 -0500 |
commit | a8b19e82d8c9a8350609e64e60848dbfbbbb6dcd (patch) | |
tree | 35d1e015a4b6f4913f162faec50c79c36e402350 /src/server/server_Initialization.ts | |
parent | 33d5a12af14e1ed50e5c3164b363fbbc253506a0 (diff) | |
parent | 864cba561db8e26240b093da7ab524e76c8823d1 (diff) |
merge
Diffstat (limited to 'src/server/server_Initialization.ts')
-rw-r--r-- | src/server/server_Initialization.ts | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/server/server_Initialization.ts b/src/server/server_Initialization.ts index 9f67c1dda..bb661a124 100644 --- a/src/server/server_Initialization.ts +++ b/src/server/server_Initialization.ts @@ -42,18 +42,18 @@ export default async function InitializeServer(routeSetter: RouteSetter) { } }; app.use(cors(corsOptions)); - app.use("*", ({ user, originalUrl }, res, next) => { - if (user && !originalUrl.includes("Heartbeat")) { - const userEmail = (user as any).email; - if (userEmail) { - timeMap[userEmail] = Date.now(); - } - } - if (!user && originalUrl === "/") { - return res.redirect("/login"); - } - next(); - }); + // app.use("*", ({ user, originalUrl }, res, next) => { + // if (user && !originalUrl.includes("Heartbeat")) { + // const userEmail = (user as any).email; + // if (userEmail) { + // timeMap[userEmail] = Date.now(); + // } + // } + // if (!user && originalUrl === "/") { + // return res.redirect("/login"); + // } + // next(); + // }); app.use(wdm(compiler, { publicPath: config.output.publicPath })); app.use(whm(compiler)); |