11 lines
554 B
Python
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"),
|
|
]
|