Files
links/pricemon/urls.py
T
2026-05-11 21:28:59 +10:00

16 lines
959 B
Python

from django.urls import path
from pricemon import views
urlpatterns = [
path('', views.DashboardView.as_view(), name='pricemon-dashboard'),
path('add/', views.WatcherCreateView.as_view(), name='pricemon-add'),
path('<int:pk>/edit/', views.WatcherEditView.as_view(), name='pricemon-edit'),
path('<int:pk>/delete/', views.WatcherDeleteView.as_view(), name='pricemon-delete'),
path('<int:pk>/history/', views.WatcherHistoryView.as_view(), name='pricemon-history'),
path('<int:pk>/check/', views.CheckNowView.as_view(), name='pricemon-check-now'),
path('api/alerts/', views.AlertsPartialView.as_view(), name='pricemon-alerts-partial'),
path('api/alerts/<int:pk>/dismiss/', views.DismissAlertView.as_view(), name='pricemon-dismiss-alert'),
path('api/chart/<int:pk>/', views.ChartDataView.as_view(), name='pricemon-chart-data'),
path('api/test-selector/', views.TestSelectorView.as_view(), name='pricemon-test-selector'),
]