From abb935694ebc1f5b0f06cf58c5a30f395d1e2225 Mon Sep 17 00:00:00 2001 From: Paul Bienkowski Date: Thu, 3 Mar 2022 08:16:59 +0100 Subject: [PATCH] Fix export route, it should be a child of /api/ --- api/obs/api/routes/exports.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/obs/api/routes/exports.py b/api/obs/api/routes/exports.py index 974b05d..90218fd 100644 --- a/api/obs/api/routes/exports.py +++ b/api/obs/api/routes/exports.py @@ -11,7 +11,7 @@ from sqlalchemy import select, func from sanic.response import raw from sanic.exceptions import InvalidUsage -from obs.api.app import app, json as json_response +from obs.api.app import api, json as json_response class ExportFormat(str, Enum): @@ -58,7 +58,7 @@ def shapefile_zip(): zip_file.close() -@app.get(r"/export/events") +@api.get(r"/export/events") async def export_events(req): bbox = req.ctx.get_single_arg( "bbox", default="-180,-90,180,90", convert=parse_bounding_box