/var/www/p4ela.kz/server/delivery/api/routes
Edit: /var/www/p4ela.kz/server/delivery/api/routes/countryCode.router.js (564B)
const CountryCodesController = require('../controllers/countryCodes.controller')
const auth = require('../middleware/auth')
module.exports = ({ router, db }) => {
const controller = new CountryCodesController({ db })
router.get('/api/country_code/list', controller.List)
router.get('/api/country_code/details/:id',auth, controller.Details)
router.post('/api/country_code/create',auth, controller.Create)
router.post('/api/country_code/edit',auth, controller.Edit)
router.post('/api/country_code/delete',auth, controller.Delete)
return router
}