from django.urls import path
from . import views

urlpatterns = [
    path('', views.DashboardView.as_view(), name='routermon-dashboard'),
    path('settings/', views.SettingsView.as_view(), name='routermon-settings'),
    # HTMX partials
    path('partials/queries/', views.LiveQueriesPartialView.as_view(), name='routermon-queries-partial'),
    path('partials/wan/', views.WanLivePartialView.as_view(), name='routermon-wan-partial'),
    # JSON APIs
    path('api/chart/', views.ChartDataView.as_view(), name='routermon-chart'),
    path('api/geo/', views.GeoStatsView.as_view(), name='routermon-geo'),
    path('api/wan/chart/', views.WanChartDataView.as_view(), name='routermon-wan-chart'),
    path('api/wan/geo/', views.WanGeoStatsView.as_view(), name='routermon-wan-geo'),
    # Actions
    path('toggle/', views.ToggleView.as_view(), name='routermon-toggle'),
    path('status/', views.StatusStreamView.as_view(), name='routermon-status'),
]
