mirror of
https://github.com/wahyd4/links.git
synced 2026-08-09 05:06:16 +10:00
21 lines
1.1 KiB
Python
21 lines
1.1 KiB
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>/toggle-enabled/',
|
|
views.WatcherToggleEnabledView.as_view(),
|
|
name='pricemon-toggle-enabled',
|
|
),
|
|
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'),
|
|
]
|