aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkshay" (aider) <[email protected]>2024-11-08 22:33:28 +0000
committerAkshay" (aider) <[email protected]>2024-11-08 22:33:28 +0000
commit864295cdb040e3ff1654d82f633ebe84c7d2559a (patch)
treee6b491a75e06c97caf1c4ea6fc5bbb24098870f8 /src
parentdf4311103042117f005a133f88bc3cc858878550 (diff)
feat: Add login view and /login endpoint to render it
Diffstat (limited to 'src')
-rw-r--r--src/routes/index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/routes/index.js b/src/routes/index.js
index 069cca8..533dabf 100644
--- a/src/routes/index.js
+++ b/src/routes/index.js
@@ -52,6 +52,10 @@ router.get("/comments/:parent_id/comment/:child_id", async (req, res) => {
52 res.render("single_comment_thread", { comments, parent_id }); 52 res.render("single_comment_thread", { comments, parent_id });
53}); 53});
54 54
55router.get("/login", async (req, res) => {
56 res.render("login");
57});
58
55// GET /subs 59// GET /subs
56router.get("/subs", async (req, res) => { 60router.get("/subs", async (req, res) => {
57 res.render("subs"); 61 res.render("subs");