mirror of
https://github.com/pawelmalak/flame.git
synced 2025-08-05 10:55:17 +02:00
Custom icons for bookmarks
This commit is contained in:
parent
1fbe0746a4
commit
a5d6cf04cf
9 changed files with 169 additions and 48 deletions
|
@ -1,5 +1,6 @@
|
|||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const upload = require('../middleware/multer');
|
||||
|
||||
const {
|
||||
createBookmark,
|
||||
|
@ -11,13 +12,13 @@ const {
|
|||
|
||||
router
|
||||
.route('/')
|
||||
.post(createBookmark)
|
||||
.post(upload, createBookmark)
|
||||
.get(getBookmarks);
|
||||
|
||||
router
|
||||
.route('/:id')
|
||||
.get(getBookmark)
|
||||
.put(updateBookmark)
|
||||
.put(upload, updateBookmark)
|
||||
.delete(deleteBookmark);
|
||||
|
||||
module.exports = router;
|
Loading…
Add table
Add a link
Reference in a new issue