|
@@ -8,7 +8,7 @@ router.get('/', async (req, res) => {
|
|
try {
|
|
try {
|
|
let categories = await Category.findAll({
|
|
let categories = await Category.findAll({
|
|
attributes: { exclude: ['id'] },
|
|
attributes: { exclude: ['id'] },
|
|
- include: Category.includeOptions(1)
|
|
|
|
|
|
+ include: Category.includeOptions('ASC', 1)
|
|
})
|
|
})
|
|
|
|
|
|
res.json(categories)
|
|
res.json(categories)
|