revert https patch

This commit is contained in:
sorrelbri 2020-06-08 14:13:32 -07:00
parent 0b2bfad12f
commit a3aecfeadc

View file

@ -37,13 +37,6 @@ app.use(express.urlencoded({ extended: false }));
app.use(cookieParser()); app.use(cookieParser());
app.use(express.static(path.join(__dirname, "public"))); app.use(express.static(path.join(__dirname, "public")));
// HTTP redirect to HTTPS
app.use("/", (req, res, next) => {
if (req.protocol === "http") {
return res.redirect(`https://${req.hostname}`);
}
return next();
});
app.use("/", indexRouter); app.use("/", indexRouter);
app.use("/users", usersRouter); app.use("/users", usersRouter);
app.use("/auth", authRouter); app.use("/auth", authRouter);