1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-29 04:40:55 +02:00

/note/user, /note/club, /note/special => /note

This commit is contained in:
Yohann D'ANELLO
2020-02-07 20:51:25 +01:00
parent f52a89637c
commit d22350faf8
4 changed files with 14 additions and 17 deletions

View File

@ -10,11 +10,8 @@ def register_note_urls(router, path):
"""
Configure router for Note REST API.
"""
router.register(path + r'note', NotePolymorphicViewSet)
router.register(path + r'club', NoteClubViewSet)
router.register(path + r'user', NoteUserViewSet)
router.register(path + r'special', NoteSpecialViewSet)
router.register(path + '', NotePolymorphicViewSet)
router.register(path + r'transaction/transaction', TransactionViewSet)
router.register(path + r'transaction/template', TransactionTemplateViewSet)
router.register(path + r'transaction/membership', MembershipTransactionViewSet)
router.register(path + '/transaction/transaction', TransactionViewSet)
router.register(path + '/transaction/template', TransactionTemplateViewSet)
router.register(path + '/transaction/membership', MembershipTransactionViewSet)