1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-24 13:39:35 +02:00
flame/routes/bookmark.js

23 lines
390 B
JavaScript
Raw Normal View History

2021-05-23 17:18:04 +02:00
const express = require('express');
const router = express.Router();
const {
createBookmark,
getBookmarks,
getBookmark,
updateBookmark,
deleteBookmark
} = require('../controllers/bookmark');
router
.route('/')
.post(createBookmark)
.get(getBookmarks);
router
.route('/:id')
.get(getBookmark)
.put(updateBookmark)
.delete(deleteBookmark);
module.exports = router;