32 lines
1.6 KiB
Python
32 lines
1.6 KiB
Python
# frontend/urls.py
|
|
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = 'frontend'
|
|
|
|
urlpatterns = [
|
|
path('login/', views.login_view, name='login'),
|
|
path('logout/', views.logout_view, name='logout'),
|
|
path('', views.dashboard, name='dashboard'),
|
|
path('current-containers/', views.container_details, name='current_container_details'),
|
|
path('container/<int:container_id>/', views.container_detail, name='container_detail'),
|
|
path('container/<int:container_id>/edit/', views.edit_container, name='edit_container'),
|
|
path('container/<int:container_id>/delete/', views.delete_container, name='delete_container'),
|
|
path('container/<int:id>/stop/', views.stop_lxc, name='stop_lxc'),
|
|
path('container/<int:id>/start/', views.start_lxc, name='start_lxc'),
|
|
path('container/create/', views.create_container, name='create_container'),
|
|
# DNS Management
|
|
path('dns/', views.dns_list, name='dns_list'),
|
|
path('dns/create/', views.dns_create, name='dns_create'),
|
|
path('dns/<str:dns_id>/edit/', views.dns_edit, name='dns_edit'),
|
|
path('dns/<str:dns_id>/delete/', views.dns_delete, name='dns_delete'),
|
|
path('api/containers/', views.dns_container_api, name='dns_container_api'),
|
|
# FAQ
|
|
path('faq/', views.faq_list, name='faq_list'),
|
|
path('faq/raw/', views.faq_raw, name='faq_raw'),
|
|
path('faq/raw/<int:id>/', views.faq_raw, name='faq_raw_single'),
|
|
path('faq/create/', views.faq_create, name='faq_create'),
|
|
path('faq/<int:faq_id>/edit/', views.faq_edit, name='faq_edit'),
|
|
path('faq/<int:faq_id>/delete/', views.faq_delete, name='faq_delete'),
|
|
] |