Skip to content

Commit abb9356

Browse files
committed
Fix export route, it should be a child of /api/
1 parent 38e14c0 commit abb9356

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

api/obs/api/routes/exports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from sanic.response import raw
1212
from sanic.exceptions import InvalidUsage
1313

14-
from obs.api.app import app, json as json_response
14+
from obs.api.app import api, json as json_response
1515

1616

1717
class ExportFormat(str, Enum):
@@ -58,7 +58,7 @@ def shapefile_zip():
5858
zip_file.close()
5959

6060

61-
@app.get(r"/export/events")
61+
@api.get(r"/export/events")
6262
async def export_events(req):
6363
bbox = req.ctx.get_single_arg(
6464
"bbox", default="-180,-90,180,90", convert=parse_bounding_box

0 commit comments

Comments
 (0)