mirror of
https://github.com/pawelmalak/flame.git
synced 2025-07-24 13:39:35 +02:00
Bookmarks Form
This commit is contained in:
parent
4e89e4c568
commit
38edb76929
5 changed files with 189 additions and 8 deletions
|
@ -18,7 +18,9 @@ exports.createBookmark = asyncWrapper(async (req, res, next) => {
|
|||
// @route GET /api/bookmarks
|
||||
// @access Public
|
||||
exports.getBookmarks = asyncWrapper(async (req, res, next) => {
|
||||
const bookmarks = await Bookmark.findAll();
|
||||
const bookmarks = await Bookmark.findAll({
|
||||
order: [['name', 'ASC']]
|
||||
});
|
||||
|
||||
res.status(200).json({
|
||||
success: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue