"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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user