This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
2019-10-28 13:44:46 +00:00
|
|
|
"""api v2 urls"""
|
2019-10-28 13:27:43 +00:00
|
|
|
from rest_framework import routers
|
|
|
|
|
2019-10-28 13:44:46 +00:00
|
|
|
from passbook.audit.api.events import EventViewSet
|
2019-10-28 13:27:43 +00:00
|
|
|
from passbook.core.api.applications import ApplicationViewSet
|
|
|
|
from passbook.core.api.groups import GroupViewSet
|
|
|
|
from passbook.core.api.invitations import InvitationViewSet
|
|
|
|
from passbook.core.api.users import UserViewSet
|
|
|
|
|
|
|
|
router = routers.DefaultRouter()
|
|
|
|
router.register('core/applications', ApplicationViewSet)
|
|
|
|
router.register('core/invitations', InvitationViewSet)
|
|
|
|
router.register('core/groups', GroupViewSet)
|
|
|
|
router.register('core/users', UserViewSet)
|
|
|
|
router.register('audit/events', EventViewSet)
|
|
|
|
urlpatterns = router.urls
|