"Updated backend and frontend code: added console logs, modified DiaryMemberController, DiaryTagController, DiaryService, and DiaryView, and made changes to CSS and vite.config.js"

This commit is contained in:
Torsten Schulz
2024-11-06 16:16:25 +01:00
parent 46efa9a9a4
commit 1efa4e588f
9 changed files with 110 additions and 41 deletions

View File

@@ -4,8 +4,10 @@ import { authenticate } from '../middleware/authMiddleware.js';
const router = express.Router();
router.get('/', authenticate, getTags);
router.post('/', authenticate, createTag);
router.delete('/:tagId', authenticate, deleteTag);
router.use(authenticate);
router.get('/', getTags);
router.post('/', createTag);
router.delete('/:tagId', deleteTag);
export default router;