mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2026-11-26 22:56:04 +01:00
Resolve the conflicts with the cluster and endpoint changes and align the new peer_invite route with the other API v2 routes: instance access through validate_api_key, peer selection by uuid or public key, endpoint peers refused, email invites only when enabled, existing invites renewed and the send_email mock pointing to the view module.
24 lines
996 B
Python
24 lines
996 B
Python
from django.urls import path
|
|
|
|
from .views_api import (
|
|
api_v2_manage_cluster_manage_status,
|
|
api_v2_manage_cluster_status,
|
|
api_v2_manage_dns_record,
|
|
api_v2_manage_peer,
|
|
api_v2_peer_detail,
|
|
api_v2_peer_invite,
|
|
api_v2_peer_list,
|
|
api_v2_wireguard_status,
|
|
)
|
|
|
|
urlpatterns = [
|
|
path('manage_peer/', api_v2_manage_peer, name='api_v2_manage_peer'),
|
|
path('manage_dns_record/', api_v2_manage_dns_record, name='api_v2_manage_dns_record'),
|
|
path('peer_list/', api_v2_peer_list, name='api_v2_peer_list'),
|
|
path('peer_detail/', api_v2_peer_detail, name='api_v2_peer_detail'),
|
|
path('peer_invite/', api_v2_peer_invite, name='api_v2_peer_invite'),
|
|
path('wireguard_status/', api_v2_wireguard_status, name='api_v2_wireguard_status'),
|
|
path('manage_cluster/status/', api_v2_manage_cluster_status, name='api_v2_manage_cluster_status'),
|
|
path('manage_cluster/manage_status/', api_v2_manage_cluster_manage_status, name='api_v2_manage_cluster_manage_status'),
|
|
]
|