2eb13ee3b8
it is replaced by a hint to use a test account, so you can see it all "live" - without needing to register first.
36 lines
1.8 KiB
Python
36 lines
1.8 KiB
Python
from django.conf.urls import patterns, url
|
|
from django.views.generic import TemplateView
|
|
|
|
from .views import (
|
|
HomeView, OverviewView, HostView, DeleteHostView, AboutView, GenerateSecretView, GenerateNSSecretView,
|
|
RobotsTxtView, DomainOverwievView, DomainView, DeleteDomainView, StatusView)
|
|
from ..api.views import (
|
|
myip_view, DetectIpView, AjaxGetIps, NicUpdateView, AuthorizedNicUpdateView)
|
|
|
|
|
|
urlpatterns = patterns(
|
|
'',
|
|
# interactive web ui
|
|
url(r'^$', HomeView.as_view(), name="home"),
|
|
url(r'^about/$', AboutView.as_view(), name="about"),
|
|
url(r'^legal/$', TemplateView.as_view(template_name='main/legal.html'), name="legal"),
|
|
url(r'^overview/$', OverviewView.as_view(), name='overview'),
|
|
url(r'^host/(?P<pk>\d+)/$', HostView.as_view(), name='host_view'),
|
|
url(r'^domain/(?P<pk>\d+)/$', DomainView.as_view(), name='domain_view'),
|
|
url(r'^status/$', StatusView.as_view(), name='status'),
|
|
url(r'^generate_secret/(?P<pk>\d+)/$', GenerateSecretView.as_view(), name='generate_secret_view'),
|
|
url(r'^generate_ns_secret/(?P<pk>\d+)/$', GenerateNSSecretView.as_view(), name='generate_ns_secret_view'),
|
|
url(r'^host/(?P<pk>\d+)/delete/$', DeleteHostView.as_view(), name='delete_host'),
|
|
url(r'^domain_overview/$', DomainOverwievView.as_view(), name='domain_overview'),
|
|
url(r'^domain/(?P<pk>\d+)/delete/$', DeleteDomainView.as_view(), name='delete_domain'),
|
|
# internal use by the web ui
|
|
url(r'^detectip/(?P<sessionid>\w+)/$', DetectIpView.as_view()),
|
|
url(r'^ajax_get_ips/$', AjaxGetIps.as_view(), name="ajax_get_ips"),
|
|
url(r'^nic/update_authorized$', AuthorizedNicUpdateView.as_view(), name='nic_update_authorized'),
|
|
# api (for update clients)
|
|
url(r'^myip$', myip_view),
|
|
url(r'^nic/update$', NicUpdateView.as_view()),
|
|
# for bots
|
|
url(r'^robots.txt$', RobotsTxtView.as_view()),
|
|
)
|