wg-manager/wg_connection_manager/urls.py
2024-10-06 12:56:12 +02:00

11 lines
554 B
Python

from django.urls import path
from .views import list_connections, sync, toggle_connection, delete_connection
from django.views.generic import RedirectView
urlpatterns = [
path("", RedirectView.as_view(pattern_name="connections_list"), name="home"),
path("connections/", list_connections, name="connections_list"),
path("toggle_connection/<int:connection_id>", toggle_connection, name="toggle_connection"),
path("delete_connection/<int:connection_id>", delete_connection, name="connection_delete"),
path("sync", sync, name="sync"),
]