main
|
Last change
on this file since 7517a3a was 7517a3a, checked in by Luka Krstikj <luka.krstik@…>, 18 hours ago |
|
init
|
-
Property mode
set to
100644
|
|
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.