Webshop/scripts/routes/other/route-index.js
2024-11-18 11:14:53 +01:00

16 lines
443 B
JavaScript

const path = require('path');
const router = require('express').Router();
router.get('/', (req, res) => {
res.sendFile(path.join(__dirname, '../../../public/index.html'));
})
router.get('/example', (req, res) => {
res.sendFile(path.join(__dirname, '../../../public/example/index.html'));
})
router.get('/login', (req, res) => {
res.sendFile(path.join(__dirname, '../../../public/login/index.html'));
})
module.exports = router;