mirror of
https://github.com/wahyd4/links.git
synced 2026-08-09 05:06:16 +10:00
16 lines
959 B
Python
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'),
|
|
]
|