- app/main.py +5 -0
- app/test.py +2 -0
- test.py +0 -1
app/main.py
CHANGED
|
@@ -4,6 +4,11 @@ from fastapi import FastAPI
|
|
| 4 |
|
| 5 |
app = FastAPI()
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
@app.get("/")
|
| 8 |
async def read_root():
|
| 9 |
return {"Hello": "World"}
|
|
|
|
| 4 |
|
| 5 |
app = FastAPI()
|
| 6 |
|
| 7 |
+
|
| 8 |
+
from app.test import test
|
| 9 |
+
|
| 10 |
+
result = test()
|
| 11 |
+
|
| 12 |
@app.get("/")
|
| 13 |
async def read_root():
|
| 14 |
return {"Hello": "World"}
|
app/test.py
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def test():
|
| 2 |
+
print("Test.py printing")
|
test.py
DELETED
|
@@ -1 +0,0 @@
|
|
| 1 |
-
print("Test.py printing")
|
|
|
|
|
|