slugs created and implemented

This commit is contained in:
2020-01-07 14:23:44 -05:00
parent eb9d8f78f7
commit e69a1e03f8
6 changed files with 38 additions and 4 deletions

View File

@ -4,6 +4,7 @@ var router = express.Router();
var siteController = require('../controllers/sites');
router.get('/', siteController.getAll);
router.get('/:id', siteController.findById);
// router.get('/:id', siteController.findById);
router.get('/:slug', siteController.findBySlug);
module.exports = router;