From 06a912f1a966643747c833c2f5077c47e6b375ed Mon Sep 17 00:00:00 2001 From: Stepan Vladovskiy Date: Mon, 6 May 2024 02:23:00 -0300 Subject: [PATCH] debug: route is /upload for testing --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 51c0360..dd8e4ea 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_handler, methods=['POST']), + Route('/upload', upload_handler, methods=['POST']), ] app = Starlette(debug=True, routes=routes)