Explorar o código

add static file

ming %!s(int64=4) %!d(string=hai) anos
pai
achega
fa685e5a83
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -95,7 +95,7 @@ async def root():
 
 @app.get("/index2")
 async def index2():
-    return FileResponse('index2.html')
+    return FileResponse('static/index2.html')
 
 @app.get("/gen_avatar")
 async def index2():