diff options
author | Daniel Schadt <kingdread@gmx.de> | 2023-08-02 21:23:23 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2023-08-02 22:07:59 +0200 |
commit | 3b0bcbf2b6ccfc0e329cedd3532786f5a28e62d7 (patch) | |
tree | c779ed5d5aea397cd26df76391fe7fafbd9c2884 | |
parent | d2afc66d282aef7484306738b302c8a87814364f (diff) | |
download | fietsboek-3b0bcbf2b6ccfc0e329cedd3532786f5a28e62d7.tar.gz fietsboek-3b0bcbf2b6ccfc0e329cedd3532786f5a28e62d7.tar.bz2 fietsboek-3b0bcbf2b6ccfc0e329cedd3532786f5a28e62d7.zip |
change routes to be more hierarchical
-rw-r--r-- | fietsboek/routes.py | 6 |
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", |