aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-08-02 21:23:23 +0200
committerDaniel Schadt <kingdread@gmx.de>2023-08-02 22:07:59 +0200
commit3b0bcbf2b6ccfc0e329cedd3532786f5a28e62d7 (patch)
treec779ed5d5aea397cd26df76391fe7fafbd9c2884
parentd2afc66d282aef7484306738b302c8a87814364f (diff)
downloadfietsboek-3b0bcbf2b6ccfc0e329cedd3532786f5a28e62d7.tar.gz
fietsboek-3b0bcbf2b6ccfc0e329cedd3532786f5a28e62d7.tar.bz2
fietsboek-3b0bcbf2b6ccfc0e329cedd3532786f5a28e62d7.zip
change routes to be more hierarchical
-rw-r--r--fietsboek/routes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/fietsboek/routes.py b/fietsboek/routes.py
index 60a566d..cfcc7bf 100644
--- a/fietsboek/routes.py
+++ b/fietsboek/routes.py
@@ -20,18 +20,18 @@ def includeme(config):
config.add_route("upload", "/upload")
config.add_route(
- "preview", "/preview/{upload_id}.gpx", factory="fietsboek.models.Upload.factory"
+ "preview", "/upload/{upload_id}/preview.gpx", factory="fietsboek.models.Upload.factory"
)
config.add_route(
"finish-upload", "/upload/{upload_id}", factory="fietsboek.models.Upload.factory"
)
config.add_route(
- "cancel-upload", "/cancel/{upload_id}", factory="fietsboek.models.Upload.factory"
+ "cancel-upload", "/upload/{upload_id}/cancel", factory="fietsboek.models.Upload.factory"
)
config.add_route("details", "/track/{track_id}", factory="fietsboek.models.Track.factory")
config.add_route("edit", "/track/{track_id}/edit", factory="fietsboek.models.Track.factory")
- config.add_route("gpx", "/gpx/{track_id}.gpx", factory="fietsboek.models.Track.factory")
+ config.add_route("gpx", "/track/{track_id}/gpx", factory="fietsboek.models.Track.factory")
config.add_route(
"invalidate-share",
"/track/{track_id}/invalidate-link",