Custom icons for bookmarks

This commit is contained in:
unknown
2021-07-28 12:36:03 +02:00
parent 1fbe0746a4
commit a5d6cf04cf
9 changed files with 169 additions and 48 deletions

View File

@@ -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;