From 0cf3b869af528b3b68a861b94ddb0aefc3819ecf Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 26 Jul 2020 20:48:25 +0100 Subject: First implementation of html API, both TSV and JSON --- urls.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'urls.py') diff --git a/urls.py b/urls.py index 74b0064..e64d7ce 100644 --- a/urls.py +++ b/urls.py @@ -45,6 +45,8 @@ actualurlpatterns = [ url(r'^expedition/(\d+)$', views_logbooks.expedition, name="expedition"), url(r'^expeditions/?$', views_logbooks.ExpeditionListView.as_view(), name="expeditions"), + url(r'^api/expeditions_tsv$', views_logbooks.Expeditions_tsvListView.as_view()), + url(r'^api/expeditions_json$', views_logbooks.Expeditions_jsonListView.as_view()), url(r'^personexpedition/(?P[A-Z]*[a-z&;]*)[^a-zA-Z]*(?P[A-Z]*[a-zA-Z&;]*)/(?P\d+)/?$', views_logbooks.personexpedition, name="personexpedition"), url(r'^logbookentry/(?P.*)/(?P.*)/?$', views_logbooks.logbookentry,name="logbookentry"), # url(r'^newlogbookentry/(?P.*)$', views_logbooks.newLogbookEntry, name="newLogBookEntry"), # Needed ! -- cgit v1.2.3