Arne Schauf 3fb3524106 Merge branch 'master' of github.com:asmaps/nsupdate.info
Conflicts:
	nsupdate/main/templates/main/about.html
	nsupdate/main/urls.py
	nsupdate/nsupdate/templates/base.html
2013-09-29 17:12:32 +02:00

23 lines
926 B
Python

from django.conf.urls import patterns, url
from main.views import (
HomeView, OverviewView, HostView, DeleteHostView, AboutView, HelpView)
from api.views import (
MyIpView, DetectIpView, NicUpdateView, AuthorizedNicUpdateView)
urlpatterns = patterns(
'',
url(r'^$', HomeView.as_view(), name="home"),
url(r'^about/$', AboutView.as_view(), name="about"),
url(r'^help/$', HelpView.as_view(), name="help"),
url(r'^overview/$', OverviewView.as_view(), name='overview'),
url(r'^host/(?P<pk>\d+)/$', HostView.as_view(), name='host_view'),
url(r'^host/(?P<pk>\d+)/delete/$',
DeleteHostView.as_view(), name='delete_host'),
url(r'^myip$', MyIpView),
url(r'^detectip/$', DetectIpView),
url(r'^detectip/(?P<secret>\w+)/$', DetectIpView),
url(r'^nic/update$', NicUpdateView),
url(r'^nic/update_authorized$',
AuthorizedNicUpdateView, name='nic_update_authorized'),
)