瀏覽代碼

user fomr added

ming 3 年之前
父節點
當前提交
7a233ee43e
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      main.py

+ 2 - 2
main.py

@@ -20,7 +20,7 @@ import math
 import hashlib
 import re
 import urllib.request
-from fastapi.responses import HTMLResponse
+from fastapi.responses import FileResponse
 #service nginx restart
 #
 
@@ -51,7 +51,7 @@ class anchor_request(BaseModel):
 
 @app.get("/")
 async def root():
-    return FileResponse('index2.html')
+    return {"message": "Hello, this is index"}
 
 @app.get("/index2")
 async def index2():