app.py
CHANGED
|
@@ -13,8 +13,6 @@ import os
|
|
| 13 |
app = FastAPI()
|
| 14 |
|
| 15 |
# Mount a static directory for serving images
|
| 16 |
-
folder = os.path.join(os.getcwd(), "/tmp")
|
| 17 |
-
os.makedirs(folder)
|
| 18 |
app.mount("/tmp", StaticFiles(directory="usr/src/tmp/static"), name="static")
|
| 19 |
|
| 20 |
# Templates for rendering HTML
|
|
|
|
| 13 |
app = FastAPI()
|
| 14 |
|
| 15 |
# Mount a static directory for serving images
|
|
|
|
|
|
|
| 16 |
app.mount("/tmp", StaticFiles(directory="usr/src/tmp/static"), name="static")
|
| 17 |
|
| 18 |
# Templates for rendering HTML
|