18 lines
607 B
Python
Raw Normal View History

2013-09-28 11:39:57 +02:00
from django.conf.urls import patterns, include, url
2013-09-28 16:46:33 +02:00
from main.views import (
HomeView, OverviewView, HostView, DeleteHostView,
)
from api.views import (
MyIpView, UpdateIpView, NicUpdateView
2013-09-28 16:46:33 +02:00
)
2013-09-28 11:39:57 +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'),
url(r'^host/(?P<pk>\d+)/$', HostView.as_view(), name='host'),
url(r'^delete_host/(?P<pk>\d+)/$', DeleteHostView.as_view(), name='delete_host'),
url(r'^myip$', MyIpView),
2013-09-28 19:01:40 +02:00
url(r'^updateip$', UpdateIpView),
url(r'^nic/update$', NicUpdateView),
2013-09-28 11:39:57 +02:00
)