From ac40535a6a6d884bc89547b6090c960fd0fe0cdc Mon Sep 17 00:00:00 2001 From: Haoyang Ding Date: Wed, 17 Mar 2021 15:02:15 -0700 Subject: [PATCH] Haoyang Ding's codeReview --- routes/index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/routes/index.js b/routes/index.js index 2ec0b82..00c215a 100644 --- a/routes/index.js +++ b/routes/index.js @@ -1,3 +1,11 @@ +/* +* Haoyang Ding => Nabil: +* +* I don't recommend you use the sendFile() to do the redirect. That's slow and sometimes cause address error. +* Try res.redirect() next time. +* +* */ + var express = require("express"); var router = express.Router(); const path = require("path");