summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-07-26 20:48:25 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2020-07-26 20:48:25 +0100
commit0cf3b869af528b3b68a861b94ddb0aefc3819ecf (patch)
tree24d8cb0e85675319abebe13d1a4dcc6160d2e799 /urls.py
parent69b843a824a8367b2a5f99447185482ffb920661 (diff)
downloadtroggle-0cf3b869af528b3b68a861b94ddb0aefc3819ecf.tar.gz
troggle-0cf3b869af528b3b68a861b94ddb0aefc3819ecf.tar.bz2
troggle-0cf3b869af528b3b68a861b94ddb0aefc3819ecf.zip
First implementation of html API, both TSV and JSON
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py2
1 files changed, 2 insertions, 0 deletions
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<first_name>[A-Z]*[a-z&;]*)[^a-zA-Z]*(?P<last_name>[A-Z]*[a-zA-Z&;]*)/(?P<year>\d+)/?$', views_logbooks.personexpedition, name="personexpedition"),
url(r'^logbookentry/(?P<date>.*)/(?P<slug>.*)/?$', views_logbooks.logbookentry,name="logbookentry"),
# url(r'^newlogbookentry/(?P<expeditionyear>.*)$', views_logbooks.newLogbookEntry, name="newLogBookEntry"), # Needed !