debug: route to / instead of /upload
All checks were successful
Deploy on Push / deploy (push) Successful in 1m23s

This commit is contained in:
Stepan Vladovskiy 2024-05-05 22:34:07 -03:00
parent cc36b46fd7
commit 2ba6aa64d2

View File

@ -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)