Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -7,6 +7,10 @@ from fastapi.responses import JSONResponse
|
|
7 |
|
8 |
app = FastAPI()
|
9 |
|
|
|
|
|
|
|
|
|
10 |
@app.post("/file/upload")
|
11 |
async def upload_file(username: str, uploaded_file: UploadFile = File(...)):
|
12 |
path_to_save_file = Path.home() / username / "saved_files"
|
|
|
7 |
|
8 |
app = FastAPI()
|
9 |
|
10 |
+
@app.get("/")
|
11 |
+
async def home():
|
12 |
+
return "API Working!"
|
13 |
+
|
14 |
@app.post("/file/upload")
|
15 |
async def upload_file(username: str, uploaded_file: UploadFile = File(...)):
|
16 |
path_to_save_file = Path.home() / username / "saved_files"
|