39 lines
1.4 KiB
Python
Raw Permalink Normal View History

2021-09-06 00:10:14 +07:00
"""config URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based views
1. Add an import: from other_app.views import Home
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
2024-01-27 10:26:23 +07:00
2021-09-06 00:10:14 +07:00
from django.contrib import admin
2021-09-18 20:02:54 +07:00
from django.urls import include, path
from drf_spectacular.views import SpectacularAPIView, SpectacularSwaggerView
2021-09-06 00:10:14 +07:00
urlpatterns = [
2024-07-22 22:37:49 +02:00
path("api/", include("common.urls")),
2024-07-18 12:34:48 +02:00
path("api/video/", include("video.urls")),
2024-07-18 22:37:11 +02:00
path("api/channel/", include("channel.urls")),
2024-07-18 22:53:25 +02:00
path("api/playlist/", include("playlist.urls")),
2024-07-18 23:17:45 +02:00
path("api/download/", include("download.urls")),
path("api/task/", include("task.urls")),
2024-07-21 12:07:06 +02:00
path("api/appsettings/", include("appsettings.urls")),
2024-07-22 17:40:49 +02:00
path("api/stats/", include("stats.urls")),
2024-07-22 21:34:03 +02:00
path("api/user/", include("user.urls")),
path("api/schema/", SpectacularAPIView.as_view(), name="schema"),
path(
"api/docs/",
SpectacularSwaggerView.as_view(url_name="schema"),
name="swagger-ui",
),
2021-09-21 16:25:22 +07:00
path("admin/", admin.site.urls),
2021-09-06 00:10:14 +07:00
]