// apps/api/src/routes/bookmarks.routes.js

const express = require('express');
const router = express.Router();
const bookmarksController = require('../controllers/bookmarks.controller');
const authMiddleware = require('../middleware/auth.middleware');

router.use(authMiddleware);

router.get('/', bookmarksController.getBookmarks);
router.post('/', bookmarksController.createBookmark);
router.delete('/:id', bookmarksController.deleteBookmark);
router.put('/:id/notes', bookmarksController.updateNotes);
router.put('/:id/move', bookmarksController.moveToFolder);
router.get('/folders', bookmarksController.getFolders);
router.post('/folders', bookmarksController.createFolder);
router.delete('/folders/:id', bookmarksController.deleteFolder);
router.post('/export', bookmarksController.exportBookmarks);

module.exports = router;