mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-18 19:19:36 +02:00
Split remaining controllers into separate files. Added iOS homescreen icon. Removed additional logging from weather module.
This commit is contained in:
parent
88694c7e27
commit
4ed29fe276
32 changed files with 418 additions and 312 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue