2022-01-10 22:51:52 +07:00
|
|
|
"""all api urls"""
|
|
|
|
|
2024-07-22 22:37:49 +02:00
|
|
|
from common import views
|
2022-01-10 22:51:52 +07:00
|
|
|
from django.urls import path
|
|
|
|
|
|
|
|
urlpatterns = [
|
2023-03-20 15:23:30 +07:00
|
|
|
path("ping/", views.PingView.as_view(), name="ping"),
|
2022-12-11 17:13:07 +07:00
|
|
|
path(
|
|
|
|
"refresh/",
|
2023-03-20 15:23:30 +07:00
|
|
|
views.RefreshView.as_view(),
|
2022-12-11 17:13:07 +07:00
|
|
|
name="api-refresh",
|
|
|
|
),
|
2022-12-23 20:39:14 +07:00
|
|
|
path(
|
|
|
|
"watched/",
|
2023-03-20 15:23:30 +07:00
|
|
|
views.WatchedView.as_view(),
|
2022-12-23 20:39:14 +07:00
|
|
|
name="api-watched",
|
|
|
|
),
|
2022-08-19 12:52:37 +02:00
|
|
|
path(
|
|
|
|
"search/",
|
2023-03-20 15:23:30 +07:00
|
|
|
views.SearchView.as_view(),
|
2022-08-19 12:52:37 +02:00
|
|
|
name="api-search",
|
|
|
|
),
|
2023-03-14 15:00:39 +07:00
|
|
|
path(
|
|
|
|
"notification/",
|
2023-03-20 15:23:30 +07:00
|
|
|
views.NotificationView.as_view(),
|
2023-03-14 15:00:39 +07:00
|
|
|
name="api-notification",
|
|
|
|
),
|
2025-03-11 22:10:17 +07:00
|
|
|
path(
|
|
|
|
"health/",
|
|
|
|
views.HealthCheck.as_view(),
|
|
|
|
name="api-health",
|
|
|
|
),
|
2022-01-10 22:51:52 +07:00
|
|
|
]
|