2013-09-28 22:46:53 +02:00

17 lines
500 B
Python

from django.conf.urls import patterns, include, url
from main.views import (
HomeView, OverviewView, HostView,
)
from api.views import (
MyIpView, UpdateIpView, NicUpdateView
)
urlpatterns = patterns('',
url(r'^$', HomeView.as_view(), name="home"),
url(r'^overview/$', OverviewView.as_view(), name='overview'),
url(r'^host/(?P<pk>\d+)/$', HostView, name='host_view'),
url(r'^myip$', MyIpView),
url(r'^updateip$', UpdateIpView),
url(r'^nic/update$', NicUpdateView),
)