summaryrefslogtreecommitdiffstats
path: root/urls.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-03-16 21:06:52 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2023-03-16 21:06:52 +0000
commit3011e7b11428558360ba2718b8e3d9947607b992 (patch)
tree27a2180936d7f767cfabdffbf9cdc82ad0100bd2 /urls.py
parent98066591dacdffb4ff33d30bc1cd341bc6f3f229 (diff)
downloadtroggle-3011e7b11428558360ba2718b8e3d9947607b992.tar.gz
troggle-3011e7b11428558360ba2718b8e3d9947607b992.tar.bz2
troggle-3011e7b11428558360ba2718b8e3d9947607b992.zip
Adding QM JSON export
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/urls.py b/urls.py
index d0d49a2..e257832 100644
--- a/urls.py
+++ b/urls.py
@@ -12,7 +12,7 @@ from troggle.core.views.editor_helpers import image_selector, new_image_form
from troggle.core.views.expo import (editexpopage, expofiles_redirect,
expofilessingle, expopage, map, mapfile,
mediapage, spider)
-from troggle.core.views.logbooks import (Expeditions_jsonListView,
+from troggle.core.views.logbooks import (QMs_jsonListView, Expeditions_jsonListView,
Expeditions_tsvListView, expedition,
get_logbook_entries, get_people,
logbookentry, notablepersons, person,
@@ -120,6 +120,7 @@ trogglepatterns = [
re_path(r'^expedition/(\d+)$', expedition, name="expedition"),
re_path(r'^api/expeditions_tsv$', Expeditions_tsvListView.as_view()),
re_path(r'^api/expeditions_json$', Expeditions_jsonListView.as_view()),
+ re_path(r'^api/QMs_json$', QMs_jsonListView.as_view()),
# Logbook entries
re_path(r'^logbookentry/(?P<date>.*)/(?P<slug>.*)/?$', logbookentry,name="logbookentry"),