소스 검색

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():