2024-02-07 21:17:14 +00:00

29 lines
1003 B
Python

# -*- encoding: utf-8 -*-
from django.urls import path, include
from rest_framework.authtoken.views import obtain_auth_token
from . import views
urlpatterns = [
path("api-auth/", include("rest_framework.urls", namespace="rest_framework")),
path("api-token-auth/", obtain_auth_token),
path("subscription/", include([
path("", views.SubscriptionList.as_view(), name="subscription"),
path("<str:pk>/", views.SubscriptionDetail.as_view(), name="subscription-detail")
])),
path("tracked/", include([
path("", views.TrackedContentList.as_view(), name="tracked"),
path("<str:pk>/", views.TrackedContentDetail.as_view(), name="tracked-detail"),
# path("")
])),
# path("rssfeed/", include([
# path("", views.RSSFeedList.as_view(), name="rssfeed"),
# path("<str:pk>/", views.RSSFeedDetail.as_view(), name="rssfeed-detail")
# ])),
# path("feedchannel/", views.FeedChannelListApiView.as_view(), name="feedchannel")
]