diff --git a/README.md b/README.md index e58aef8..11fb838 100644 --- a/README.md +++ b/README.md @@ -15,5 +15,5 @@ uvicorn main:app --host 0.0.0.0 --port 8001 --reload mit folgender URL im Browser ist der Einstiegpunkt: -http://127.0.0.1:8001/ +http://127.0.0.1:8001/static/upload.html diff --git a/main.py b/main.py index 01e49df..f915f6e 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,10 @@ from fastapi import FastAPI +from fastapi.staticfiles import StaticFiles + app = FastAPI() +app.mount("/static", StaticFiles(directory="static"), name="static") @app.get("/") def read_root(): diff --git a/static/upload.html b/static/upload.html new file mode 100644 index 0000000..a97cab0 --- /dev/null +++ b/static/upload.html @@ -0,0 +1,67 @@ + + + + + + Datei Upload + + + +

Datei Upload

+ +
+ + +

+

+  
+ + + + +