该flask为fastapi,速度更快
This commit is contained in:
parent
0b937a2f11
commit
a2ffebf49e
@ -56,7 +56,7 @@ async def request_validation_exception_handler(request: Request, exc: RequestVal
|
|||||||
|
|
||||||
@app.get("/")
|
@app.get("/")
|
||||||
@app.get("/index.html")
|
@app.get("/index.html")
|
||||||
async def redirect():
|
async def index():
|
||||||
response = RedirectResponse(url="/s/index.html", status_code=307)
|
response = RedirectResponse(url="/s/index.html", status_code=307)
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user