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)
|
|
|
|
|
2019-10-15 23:04:25 +02:00
|
|
|
from django.conf.urls import url, include
|
|
|
|
|
2015-03-28 13:04:49 +01:00
|
|
|
from api import ASResource, CrawlResource, BorderRouterResource, AnnouncementResource
|
2019-10-15 23:04:25 +02:00
|
|
|
from bgpdata import views as bgpdata_views
|
2015-03-27 15:33:54 +01:00
|
|
|
|
2015-03-28 13:04:49 +01:00
|
|
|
asResource = ASResource()
|
|
|
|
crawlResource = CrawlResource()
|
|
|
|
borderRouterResource = BorderRouterResource()
|
|
|
|
announcementResource = AnnouncementResource()
|
2015-03-27 15:33:54 +01:00
|
|
|
|
2019-10-15 23:04:25 +02:00
|
|
|
urlpatterns = (
|
|
|
|
url(r'^$', bgpdata_views.overview),
|
|
|
|
url(r'^([0-9]+)/$', bgpdata_views.showMap),
|
2015-03-27 15:33:54 +01:00
|
|
|
|
|
|
|
#url(r'^api/crawl/(?P<crawlID>\d+)/asses/$', 'bgpdata.api.asses'),
|
|
|
|
#(r'^api/', include(asResource.urls)),
|
2019-10-15 23:04:25 +02:00
|
|
|
url(r'^api/', include(asResource.urls)),
|
|
|
|
url(r'^api/', include(crawlResource.urls)),
|
|
|
|
url(r'^api/', include(borderRouterResource.urls)),
|
|
|
|
url(r'^api/', include(announcementResource.urls)),
|
2015-03-27 15:33:54 +01:00
|
|
|
)
|
|
|
|
|