21 lines
813 B
Python
21 lines
813 B
Python
from django.urls import include, path
|
|
from rest_framework import routers
|
|
|
|
from .views import ContestViewSet, BandViewSet, FrequencyViewSet, EntryCategoryViewSet, ReferenceViewSet, QSOViewSet, \
|
|
ShadowCallViewSet, UserProfileViewSet
|
|
|
|
router = routers.DefaultRouter()
|
|
router.register('contests', ContestViewSet)
|
|
router.register('bands', BandViewSet)
|
|
router.register('frequencies', FrequencyViewSet)
|
|
router.register('entrycategories', EntryCategoryViewSet)
|
|
router.register('references', ReferenceViewSet)
|
|
router.register('qsos', QSOViewSet, basename='qso')
|
|
router.register('shadowcalls', ShadowCallViewSet)
|
|
router.register('profile', UserProfileViewSet, basename='profile')
|
|
|
|
urlpatterns = [
|
|
path('', include(router.urls)),
|
|
path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
|
|
]
|