feat(tkuser): 알림 수신자 탭에 ntfy 구독 관리 추가

- notificationRecipientModel에 ntfy CRUD 메서드 추가 (같은 DB 직접 쿼리)
- ntfy 라우트 3개 추가 (GET/POST/DELETE, /:type 위에 배치)
- 알림 수신자 탭 상단에 ntfy 구독 관리 카드 렌더링
- ntfy 추가 모달에 앱 설정 안내 문구 포함

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-03-17 15:16:14 +09:00
parent 1cef745cc9
commit f548a95767
5 changed files with 187 additions and 3 deletions

View File

@@ -13,6 +13,11 @@ router.get('/types', controller.getTypes);
// 전체 수신자 목록 (유형별 그룹화)
router.get('/', controller.getAll);
// ntfy 구독 관리 (/:type보다 위에 배치해야 "ntfy"를 type으로 잡지 않음)
router.get('/ntfy', controller.getNtfySubscribers);
router.post('/ntfy/:userId', controller.addNtfySubscription);
router.delete('/ntfy/:userId', controller.removeNtfySubscription);
// 유형별 수신자 조회
router.get('/:type', controller.getByType);