【发布时间】:2022-12-27 01:17:11
【问题描述】:
I want to make my function proxy accepts ALL paths and all HTTP methods, everything that hits the Starlette app I want to proxy function handles it.
async def proxy(request: Request):
pass
routes = [
Route("/", endpoint=proxy),
]
app = Starlette(routes=routes)
I tried the code above, but no luck.
How to do this?
【问题讨论】: