mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-12-23 07:52:23 +00:00
/note/user, /note/club, /note/special => /note
This commit is contained in:
parent
f52a89637c
commit
d22350faf8
@ -9,6 +9,6 @@ def register_activity_urls(router, path):
|
||||
"""
|
||||
Configure router for Activity REST API.
|
||||
"""
|
||||
router.register(path + r'activity', ActivityViewSet)
|
||||
router.register(path + r'type', ActivityTypeViewSet)
|
||||
router.register(path + r'guest', GuestViewSet)
|
||||
router.register(path + '/activity', ActivityViewSet)
|
||||
router.register(path + '/type', ActivityTypeViewSet)
|
||||
router.register(path + '/guest', GuestViewSet)
|
||||
|
@ -9,7 +9,7 @@ def register_members_urls(router, path):
|
||||
"""
|
||||
Configure router for Member REST API.
|
||||
"""
|
||||
router.register(path + r'profile', ProfileViewSet)
|
||||
router.register(path + r'club', ClubViewSet)
|
||||
router.register(path + r'role', RoleViewSet)
|
||||
router.register(path + r'membership', MembershipViewSet)
|
||||
router.register(path + '/profile', ProfileViewSet)
|
||||
router.register(path + '/club', ClubViewSet)
|
||||
router.register(path + '/role', RoleViewSet)
|
||||
router.register(path + '/membership', MembershipViewSet)
|
||||
|
@ -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)
|
||||
|
@ -32,13 +32,13 @@ router = routers.DefaultRouter()
|
||||
router.register(r'users', UserViewSet)
|
||||
|
||||
# Routers for members app
|
||||
register_members_urls(router, r'members/')
|
||||
register_members_urls(router, r'members')
|
||||
|
||||
# Routers for activity app
|
||||
register_activity_urls(router, r'activity/')
|
||||
register_activity_urls(router, r'activity')
|
||||
|
||||
# Routers for note app
|
||||
register_note_urls(router, r'note/')
|
||||
register_note_urls(router, r'note')
|
||||
|
||||
# Wire up our API using automatic URL routing.
|
||||
# Additionally, we include login URLs for the browsable API.
|
||||
|
Loading…
Reference in New Issue
Block a user