first commit
This commit is contained in:
7
routes/index.js
Normal file
7
routes/index.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const routeV1 = require('./v1/index');
|
||||
|
||||
const routes = app => {
|
||||
app.use('/v1', routeV1);
|
||||
};
|
||||
|
||||
module.exports = routes;
|
9
routes/v1/index.js
Normal file
9
routes/v1/index.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
|
||||
const mainController = require('../../controllers/mainController');
|
||||
|
||||
router.get('/', mainController.getAll);
|
||||
router.get('/:id', mainController.getById);
|
||||
|
||||
module.exports = router;
|
Reference in New Issue
Block a user