diff options
author | Marvin Borner | 2020-09-30 21:17:33 +0200 |
---|---|---|
committer | Marvin Borner | 2020-09-30 21:17:33 +0200 |
commit | 25f43e12bd6b3713b633ec3fec524c6199a68dfa (patch) | |
tree | c87e5497e0912606ea7e7309f92c6e3dd505dc5e | |
parent | dce15366d697aaa4f2a1f2e27c1e05eb4fa87120 (diff) |
Added redirect
-rw-r--r-- | app.js | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -8,6 +8,7 @@ const app = express(); app.use(express.urlencoded({ extended: true })); app.use(express.json()); +app.get("/", (req, res) => res.redirect("/motto")); app.use("/motto", motto); app.listen(5005, () => console.log("Server started on http://localhost:5005")); |