import express from 'express';
import { authenticate } from '../middleware/authMiddleware.js';
import { getMemberTags, getMemberNotes, addMemberNote, addMemberTag,
         removeMemberNote, removeMemberTag } from '../controllers/diaryMemberController.js';

const router = express.Router();

router.get('/:clubId/tag', authenticate, getMemberTags);
router.get('/:clubId/note', authenticate, getMemberNotes);
router.post('/:clubId/note', authenticate, addMemberNote);
router.post('/:clubId/tag', authenticate, addMemberTag);
router.delete('/:clubId/note/:noteId', authenticate, removeMemberNote);
router.post('/:clubId/tag/remove', authenticate, removeMemberTag);

export default router;
