Added routing for Register, Login, and Verify-email backend stuff

This commit is contained in:
Matthew Patrick 2021-11-15 15:23:48 +07:00
parent c4e0e11aa6
commit 9381551dd7

View file

@ -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');