Spaces:
Sleeping
Sleeping
akh1r0ck
commited on
Commit
·
c0901d8
1
Parent(s):
5d2f3ec
[update] docs url
Browse files
main.py
CHANGED
@@ -1,7 +1,11 @@
|
|
1 |
from fastapi import FastAPI
|
2 |
|
3 |
-
app = FastAPI(
|
|
|
|
|
|
|
4 |
|
5 |
@app.get("/")
|
6 |
def read_root():
|
7 |
-
return {"Hello": "World!"}
|
|
|
|
1 |
from fastapi import FastAPI
|
2 |
|
3 |
+
app = FastAPI(
|
4 |
+
openapi_url="/api/v1/docker_test/openapi.json",
|
5 |
+
docs_url="/api/v1/docker_test/docs"
|
6 |
+
)
|
7 |
|
8 |
@app.get("/")
|
9 |
def read_root():
|
10 |
+
return {"Hello": "World!"}
|
11 |
+
|