From 3b0bcbf2b6ccfc0e329cedd3532786f5a28e62d7 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Wed, 2 Aug 2023 21:23:23 +0200 Subject: change routes to be more hierarchical --- fietsboek/routes.py | 6 +++--- 1 file 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", -- cgit v1.2.3