From 2ba6aa64d29b60dbc5a2a1adb136bcf45f4f375c Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Sun, 5 May 2024 22:34:07 -0300 Subject: [PATCH] debug: route to / instead of /upload --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index dd8e4ea..51c0360 100644 --- a/main.py +++ b/main.py @@ -59,7 +59,7 @@ async def upload_handler(request: Request): return JSONResponse({'error': 'Failed to upload file'}, status_code=500) routes = [ - Route('/upload', upload_handler, methods=['POST']), + Route('/', upload_handler, methods=['POST']), ] app = Starlette(debug=True, routes=routes)