From 9381551dd7096ba19ec5ba2bd01d91fd72a7b17c Mon Sep 17 00:00:00 2001 From: Matthew Patrick Date: Mon, 15 Nov 2021 15:23:48 +0700 Subject: [PATCH] Added routing for Register, Login, and Verify-email backend stuff --- routes/index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routes/index.js b/routes/index.js index a90926a..a96db06 100644 --- a/routes/index.js +++ b/routes/index.js @@ -1,5 +1,10 @@ const express = require('express') const router = express.Router() +var registerlogin = require("./registerlogin"); + +router.post("/register", registerlogin.register); +router.post("/login", registerlogin.login); +router.get("/verify-email", registerlogin.verifyemail); router.get('/', (_req, res) => { res.render('pages/index');