mirror of
https://github.com/pawelmalak/flame.git
synced 2026-02-28 01:13:11 +08:00
Custom icons for bookmarks
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user