aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Borner2020-09-30 21:17:33 +0200
committerMarvin Borner2020-09-30 21:17:33 +0200
commit25f43e12bd6b3713b633ec3fec524c6199a68dfa (patch)
treec87e5497e0912606ea7e7309f92c6e3dd505dc5e
parentdce15366d697aaa4f2a1f2e27c1e05eb4fa87120 (diff)
Added redirect
-rw-r--r--app.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app.js b/app.js
index 0bbd1f3..1130de1 100644
--- a/app.js
+++ b/app.js
@@ -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"));