dnmapper/bgpdata/urls.py

26 lines
907 B
Python
Raw Normal View History

2018-01-19 13:28:52 +01:00
# This file is part of dnmapper, an AS--level mapping tool
# Licensed under GNU General Public License v3 or later
# Written by Sebastian Lohff (seba@someserver.de)
2015-03-27 15:33:54 +01:00
from django.conf.urls import patterns, url, include
#from django.views.generic import RedirectView
from api import ASResource, CrawlResource, BorderRouterResource, AnnouncementResource
2015-03-27 15:33:54 +01:00
asResource = ASResource()
crawlResource = CrawlResource()
borderRouterResource = BorderRouterResource()
announcementResource = AnnouncementResource()
2015-03-27 15:33:54 +01:00
urlpatterns = patterns('',
url(r'^$', 'bgpdata.views.overview'),
url(r'^([0-9]+)/$', 'bgpdata.views.showMap'),
#url(r'^api/crawl/(?P<crawlID>\d+)/asses/$', 'bgpdata.api.asses'),
#(r'^api/', include(asResource.urls)),
(r'^api/', include(asResource.urls)),
(r'^api/', include(crawlResource.urls)),
(r'^api/', include(borderRouterResource.urls)),
(r'^api/', include(announcementResource.urls)),
2015-03-27 15:33:54 +01:00
)