Browse Source

Update 'README.md'

天问 2 months ago
parent
commit
52947863fa
1 changed files with 6 additions and 0 deletions
  1. 6 0
      README.md

+ 6 - 0
README.md

@@ -7,6 +7,12 @@ Uvicorn是ASGI服务器,基于uvloop和httptools构建
 ```
 pip install uvicorn
 
+
+# main.py
+from fastapi import FastAPI
+app = FastAPI(openapi_url=None, docs_url=None, redoc_url=None)
+
+# run.py
 import uvicorn
 
 if __name__ == "__main__":