mirror of
https://gitlab.com/nekoya/web.git
synced 2024-11-14 10:26:40 +01:00
61 lines
No EOL
1.3 KiB
JavaScript
61 lines
No EOL
1.3 KiB
JavaScript
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');
|
|
})
|
|
|
|
router.get('/login', (_req, res) => {
|
|
res.render('pages/login');
|
|
})
|
|
|
|
router.get('/forgot-password', (_req, res) => {
|
|
res.render('pages/forgot-password');
|
|
})
|
|
|
|
router.get('/otp', (_req, res) => {
|
|
res.render('pages/otp');
|
|
})
|
|
|
|
router.get('/products', (_req, res) => {
|
|
res.render('pages/products')
|
|
})
|
|
|
|
router.get('/product', (_req, res) => {
|
|
res.render('pages/product')
|
|
})
|
|
|
|
router.get(('/successadd'), (_req, res) => {
|
|
res.render('pages/success-add')
|
|
})
|
|
|
|
router.get('/bag', (_req, res) => {
|
|
res.render('pages/bag')
|
|
})
|
|
|
|
router.get('/checkout', (_req, res) => {
|
|
res.render('pages/checkout')
|
|
})
|
|
|
|
router.get('/notifpay', (_req, res) => {
|
|
res.render('pages/notif-pay')
|
|
})
|
|
|
|
router.get('/payment', (_req, res) => {
|
|
res.render('pages/payment')
|
|
})
|
|
|
|
router.get('/register', (_req, res) => {
|
|
res.render('pages/register')
|
|
})
|
|
|
|
router.get('/about-us', (_req, res) => {
|
|
res.render('pages/about-us')
|
|
})
|
|
|
|
module.exports = router; |