mirror of
https://github.com/pawelmalak/flame.git
synced 2026-02-28 01:13:11 +08:00
Split remaining controllers into separate files. Added iOS homescreen icon. Removed additional logging from weather module.
This commit is contained in:
@@ -3,26 +3,21 @@ const router = express.Router();
|
||||
|
||||
const {
|
||||
createCategory,
|
||||
getCategories,
|
||||
getCategory,
|
||||
getAllCategories,
|
||||
getSingleCategory,
|
||||
updateCategory,
|
||||
deleteCategory,
|
||||
reorderCategories
|
||||
} = require('../controllers/category');
|
||||
reorderCategories,
|
||||
} = require('../controllers/categories');
|
||||
|
||||
router
|
||||
.route('/')
|
||||
.post(createCategory)
|
||||
.get(getCategories);
|
||||
router.route('/').post(createCategory).get(getAllCategories);
|
||||
|
||||
router
|
||||
.route('/:id')
|
||||
.get(getCategory)
|
||||
.get(getSingleCategory)
|
||||
.put(updateCategory)
|
||||
.delete(deleteCategory);
|
||||
|
||||
router
|
||||
.route('/0/reorder')
|
||||
.put(reorderCategories);
|
||||
router.route('/0/reorder').put(reorderCategories);
|
||||
|
||||
module.exports = router;
|
||||
module.exports = router;
|
||||
|
||||
Reference in New Issue
Block a user