portier/source/restapi/urls.py

17 lines
404 B
Python

from django.urls import path, include
from rest_framework import routers
from .views import StreamViewSet, RestreamViewSet
router = routers.DefaultRouter()
router.register(r'streams', StreamViewSet)
router.register(r'restreams', RestreamViewSet)
app_name = 'restapi'
urlpatterns = [
path('', include(router.urls)),
path('auth/', include('rest_framework.urls', namespace='rest_framework'))
]