2013-09-28 11:39:57 +02:00
|
|
|
from django.conf.urls import patterns, include, url
|
2013-09-29 01:28:49 +02:00
|
|
|
from main.views import HomeView, OverviewView, HostView, DeleteHostView
|
2013-09-29 02:42:20 +02:00
|
|
|
from api.views import MyIpView, DetectIpView, NicUpdateView, AuthorizedNicUpdateView
|
|
|
|
|
2013-09-28 11:39:57 +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-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 01:16:49 +02:00
|
|
|
url(r'^host/(?P<pk>\d+)/delete/$', DeleteHostView.as_view(), name='delete_host'),
|
2013-09-28 18:46:31 +02:00
|
|
|
url(r'^myip$', MyIpView),
|
2013-09-29 02:44:09 +02:00
|
|
|
url(r'^detectip/$', DetectIpView),
|
2013-09-28 20:35:30 +02:00
|
|
|
url(r'^nic/update$', NicUpdateView),
|
2013-09-29 02:42:20 +02:00
|
|
|
url(r'^nic/update_authorized$', AuthorizedNicUpdateView),
|
2013-09-28 11:39:57 +02:00
|
|
|
)
|