2021-11-02 06:20:20 +01:00
|
|
|
const express = require('express')
|
|
|
|
|
|
|
|
const router = express.Router()
|
|
|
|
|
2021-11-09 03:13:22 +01:00
|
|
|
router.get('/', (_req, res) => {
|
2021-11-02 06:20:20 +01:00
|
|
|
res.render('pages/product')
|
|
|
|
})
|
|
|
|
|
2021-11-09 03:13:22 +01:00
|
|
|
router.get(('/successadd'), (_req, res) => {
|
2021-11-09 03:12:36 +01:00
|
|
|
res.render('pages/success-add')
|
2021-11-02 06:20:20 +01:00
|
|
|
})
|
|
|
|
|
2021-11-09 03:13:22 +01:00
|
|
|
router.get('/bag', (_req, res) => {
|
2021-11-02 06:20:20 +01:00
|
|
|
res.render('pages/bag')
|
|
|
|
})
|
|
|
|
|
2021-11-09 03:13:22 +01:00
|
|
|
router.get('/checkout', (_req, res) => {
|
2021-11-02 06:20:20 +01:00
|
|
|
res.render('pages/checkout')
|
|
|
|
})
|
|
|
|
|
2021-11-09 03:13:22 +01:00
|
|
|
router.get('/notifpay', (_req, res) => {
|
2021-11-09 03:12:36 +01:00
|
|
|
res.render('pages/notif-pay')
|
2021-11-02 06:20:20 +01:00
|
|
|
})
|
|
|
|
|
2021-11-09 03:13:22 +01:00
|
|
|
router.get('/payment', (_req, res) => {
|
2021-11-02 06:20:20 +01:00
|
|
|
res.render('pages/payment')
|
|
|
|
})
|
|
|
|
|
|
|
|
module.exports = router;
|