mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-19 03:29:37 +02:00
Sorting and custom ordering for categories
This commit is contained in:
parent
5b900872af
commit
ae3141e37b
11 changed files with 302 additions and 60 deletions
|
@ -6,7 +6,8 @@ const {
|
|||
getCategories,
|
||||
getCategory,
|
||||
updateCategory,
|
||||
deleteCategory
|
||||
deleteCategory,
|
||||
reorderCategories
|
||||
} = require('../controllers/category');
|
||||
|
||||
router
|
||||
|
@ -20,4 +21,8 @@ router
|
|||
.put(updateCategory)
|
||||
.delete(deleteCategory);
|
||||
|
||||
router
|
||||
.route('/0/reorder')
|
||||
.put(reorderCategories);
|
||||
|
||||
module.exports = router;
|
Loading…
Add table
Add a link
Reference in a new issue