mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-27 02:43:01 +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.
|
Configure router for Activity REST API.
|
||||||
"""
|
"""
|
||||||
router.register(path + r'activity', ActivityViewSet)
|
router.register(path + '/activity', ActivityViewSet)
|
||||||
router.register(path + r'type', ActivityTypeViewSet)
|
router.register(path + '/type', ActivityTypeViewSet)
|
||||||
router.register(path + r'guest', GuestViewSet)
|
router.register(path + '/guest', GuestViewSet)
|
||||||
|
@ -9,7 +9,7 @@ def register_members_urls(router, path):
|
|||||||
"""
|
"""
|
||||||
Configure router for Member REST API.
|
Configure router for Member REST API.
|
||||||
"""
|
"""
|
||||||
router.register(path + r'profile', ProfileViewSet)
|
router.register(path + '/profile', ProfileViewSet)
|
||||||
router.register(path + r'club', ClubViewSet)
|
router.register(path + '/club', ClubViewSet)
|
||||||
router.register(path + r'role', RoleViewSet)
|
router.register(path + '/role', RoleViewSet)
|
||||||
router.register(path + r'membership', MembershipViewSet)
|
router.register(path + '/membership', MembershipViewSet)
|
||||||
|
@ -10,11 +10,8 @@ def register_note_urls(router, path):
|
|||||||
"""
|
"""
|
||||||
Configure router for Note REST API.
|
Configure router for Note REST API.
|
||||||
"""
|
"""
|
||||||
router.register(path + r'note', NotePolymorphicViewSet)
|
router.register(path + '', NotePolymorphicViewSet)
|
||||||
router.register(path + r'club', NoteClubViewSet)
|
|
||||||
router.register(path + r'user', NoteUserViewSet)
|
|
||||||
router.register(path + r'special', NoteSpecialViewSet)
|
|
||||||
|
|
||||||
router.register(path + r'transaction/transaction', TransactionViewSet)
|
router.register(path + '/transaction/transaction', TransactionViewSet)
|
||||||
router.register(path + r'transaction/template', TransactionTemplateViewSet)
|
router.register(path + '/transaction/template', TransactionTemplateViewSet)
|
||||||
router.register(path + r'transaction/membership', MembershipTransactionViewSet)
|
router.register(path + '/transaction/membership', MembershipTransactionViewSet)
|
||||||
|
@ -32,13 +32,13 @@ router = routers.DefaultRouter()
|
|||||||
router.register(r'users', UserViewSet)
|
router.register(r'users', UserViewSet)
|
||||||
|
|
||||||
# Routers for members app
|
# Routers for members app
|
||||||
register_members_urls(router, r'members/')
|
register_members_urls(router, r'members')
|
||||||
|
|
||||||
# Routers for activity app
|
# Routers for activity app
|
||||||
register_activity_urls(router, r'activity/')
|
register_activity_urls(router, r'activity')
|
||||||
|
|
||||||
# Routers for note app
|
# Routers for note app
|
||||||
register_note_urls(router, r'note/')
|
register_note_urls(router, r'note')
|
||||||
|
|
||||||
# Wire up our API using automatic URL routing.
|
# Wire up our API using automatic URL routing.
|
||||||
# Additionally, we include login URLs for the browsable API.
|
# Additionally, we include login URLs for the browsable API.
|
||||||
|
Loading…
Reference in New Issue
Block a user