mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-23 13:29:35 +02:00
Adding Categories and Bookmarks using form
This commit is contained in:
parent
38edb76929
commit
c145888aec
7 changed files with 116 additions and 13 deletions
|
@ -23,7 +23,8 @@ exports.getCategories = asyncWrapper(async (req, res, next) => {
|
|||
include: [{
|
||||
model: Bookmark,
|
||||
as: 'bookmarks'
|
||||
}]
|
||||
}],
|
||||
order: [['name', 'ASC']]
|
||||
});
|
||||
|
||||
res.status(200).json({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue