2020-05-31 18:35:30 +02:00
|
|
|
from django.urls import path, include
|
|
|
|
from rest_framework import routers
|
|
|
|
|
2024-02-27 20:44:35 +01:00
|
|
|
from .views import StreamViewSet, RestreamViewSet
|
2020-05-31 18:35:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
router = routers.DefaultRouter()
|
|
|
|
router.register(r'streams', StreamViewSet)
|
2024-02-27 20:44:35 +01:00
|
|
|
router.register(r'restreams', RestreamViewSet)
|
2020-05-31 18:35:30 +02:00
|
|
|
|
|
|
|
app_name = 'restapi'
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path('', include(router.urls)),
|
|
|
|
path('auth/', include('rest_framework.urls', namespace='rest_framework'))
|
|
|
|
]
|