iShare commited on
Commit
7cf34f0
1 Parent(s): b474372

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -0
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"