You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.9 KiB
Python

from django.urls import path, include
10 years ago
from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.views.generic.base import RedirectView
import django_lcore
import django_lcore.urls
10 years ago
from lambdainst import views as account_views
10 years ago
from . import views
10 years ago
urlpatterns = [
path('admin/', admin.site.urls),
path('vpn/', include(django_lcore.urls)),
path('vpnadmin/', include('lvpn_admin.urls')),
path('api/locations', account_views.api_locations),
path('api/auth', django_lcore.views.api_auth),
path('', views.index, name='index'),
path('ca.crt', account_views.ca_crt),
path('setlang', views.set_lang, name='set_lang'),
path('chat', views.chat, name='chat'),
path('page/faq', RedirectView.as_view(url='/kb/')),
path('page/install-gnulinux', RedirectView.as_view(url='/page/install-linux')),
path('page/install-openvpn', RedirectView.as_view(url='/page/install-other')),
path('page/support', RedirectView.as_view(url='/page/help')),
path('page/<name>', views.page, name='page'),
path('status', account_views.status),
path('account/forgot', auth_views.PasswordResetView.as_view(),
{}, name='password_reset'),
path('account/forgot_done', auth_views.PasswordResetDoneView.as_view(),
name='password_reset_done'),
path('account/reset/<uidb64>/<token>/',
auth_views.PasswordResetConfirmView.as_view(), name='password_reset_confirm'),
path('account/reset/done/', auth_views.PasswordResetCompleteView.as_view(),
name='password_reset_complete'),
path('tinymce/', include('tinymce.urls')),
path('account/', include('lambdainst.urls', namespace='account')),
path('payments/', include('payments.urls', namespace='payments')),
path('tickets/', include('tickets.urls', namespace='tickets')),
path('kb/', include('kb.urls', namespace='kb')),
10 years ago
]