2013-09-29 15:37:58 +02:00
|
|
|
from django.conf.urls import patterns, url
|
2013-09-29 17:28:36 +02:00
|
|
|
from django.views.generic import TemplateView
|
2013-10-03 19:26:39 +02:00
|
|
|
|
2013-10-17 20:50:44 +00:00
|
|
|
from .views import (
|
2013-09-29 21:06:11 +02:00
|
|
|
HomeView, OverviewView, HostView, DeleteHostView, AboutView, HelpView, GenerateSecretView,
|
2013-10-27 11:28:40 +01:00
|
|
|
RobotsTxtView, DomainOverwievView, DeleteDomainView, ScreenshotsView)
|
2013-10-17 20:50:44 +00:00
|
|
|
from ..api.views import (
|
2013-09-29 17:06:39 +02:00
|
|
|
MyIpView, DetectIpView, NicUpdateView, AuthorizedNicUpdateView)
|
2013-09-29 02:42:20 +02:00
|
|
|
|
2013-10-03 19:26:39 +02:00
|
|
|
|
2013-09-29 01:28:49 +02:00
|
|
|
urlpatterns = patterns(
|
|
|
|
'',
|
2013-09-28 12:06:26 +02:00
|
|
|
url(r'^$', HomeView.as_view(), name="home"),
|
2013-09-29 17:06:39 +02:00
|
|
|
url(r'^about/$', AboutView.as_view(), name="about"),
|
2013-09-29 17:28:36 +02:00
|
|
|
url(r'^legal/$',
|
|
|
|
TemplateView.as_view(template_name='main/legal.html'), name="legal"),
|
2013-09-29 16:58:02 +02:00
|
|
|
url(r'^help/$', HelpView.as_view(), name="help"),
|
2013-10-27 11:28:40 +01:00
|
|
|
url(r'^screenshots/$', ScreenshotsView.as_view(), name="screenshots"),
|
2013-09-28 22:46:53 +02:00
|
|
|
url(r'^overview/$', OverviewView.as_view(), name='overview'),
|
2013-09-29 01:08:52 +02:00
|
|
|
url(r'^host/(?P<pk>\d+)/$', HostView.as_view(), name='host_view'),
|
2013-09-29 19:58:08 +02:00
|
|
|
url(r'^generate_secret/(?P<pk>\d+)/$', GenerateSecretView.as_view(), name='generate_secret_view'),
|
2013-09-29 17:06:39 +02:00
|
|
|
url(r'^host/(?P<pk>\d+)/delete/$',
|
|
|
|
DeleteHostView.as_view(), name='delete_host'),
|
2013-10-18 15:30:17 -07:00
|
|
|
url(r'^domain_overview/$',
|
|
|
|
DomainOverwievView.as_view(), name='domain_overview'),
|
|
|
|
url(r'^domain/(?P<pk>\d+)/delete/$',
|
|
|
|
DeleteDomainView.as_view(), name='delete_domain'),
|
2013-09-28 18:46:31 +02:00
|
|
|
url(r'^myip$', MyIpView),
|
2013-09-29 14:33:24 +02:00
|
|
|
url(r'^detectip/$', DetectIpView),
|
2013-09-29 14:07:24 +02:00
|
|
|
url(r'^detectip/(?P<secret>\w+)/$', DetectIpView),
|
2013-09-28 20:35:30 +02:00
|
|
|
url(r'^nic/update$', NicUpdateView),
|
2013-09-29 17:06:39 +02:00
|
|
|
url(r'^nic/update_authorized$',
|
|
|
|
AuthorizedNicUpdateView, name='nic_update_authorized'),
|
2013-09-29 21:06:11 +02:00
|
|
|
url(r'^robots.txt$', RobotsTxtView),
|
2013-09-28 11:39:57 +02:00
|
|
|
)
|