source:
src/routes/index.js
| Last change on this file was 7517a3a, checked in by , 20 hours ago | |
|---|---|
|
|
| File size: 316 bytes | |
| Line | |
|---|---|
| 1 | const express = require('express'); |
| 2 | const router = express.Router(); |
| 3 | |
| 4 | const adminRoutes = require('./adminRoutes'); |
| 5 | const clientRoutes = require('./clientRoutes'); |
| 6 | |
| 7 | router.get('/', (req, res) => { |
| 8 | res.render('index'); |
| 9 | }); |
| 10 | |
| 11 | router.use('/admin', adminRoutes); |
| 12 | router.use('/', clientRoutes); |
| 13 | |
| 14 | module.exports = router; |
Note:
See TracBrowser
for help on using the repository browser.
