(request: Request, anypath: str)
| 103 | # Catch-all route for unmatched GET requests |
| 104 | @app.api_route("/{anypath:path}", methods=["GET"]) |
| 105 | async def catch_all(request: Request, anypath: str): |
| 106 | print(f"Unmatched GET request: {anypath}") |
| 107 | return JSONResponse(content={"message": f"Route {anypath} not found"}, status_code=404) |
| 108 | |
| 109 | |
| 110 | # Run the app using Uvicorn |
nothing calls this directly
no outgoing calls
no test coverage detected