kavg commited on
Commit
7b11b8d
·
1 Parent(s): 12af45e

Added a home route

Browse files
Files changed (1) hide show
  1. main.py +4 -0
main.py CHANGED
@@ -29,6 +29,10 @@ async def lifespan(app: FastAPI):
29
 
30
  app = FastAPI(lifespan=lifespan)
31
 
 
 
 
 
32
  @app.post("/submit-doc")
33
  async def ProcessDocument(file: UploadFile):
34
  content = await file.read()
 
29
 
30
  app = FastAPI(lifespan=lifespan)
31
 
32
+ @app.get("/")
33
+ def api_home():
34
+ return {'detail': 'Welcome to Sri-Doc space'}
35
+
36
  @app.post("/submit-doc")
37
  async def ProcessDocument(file: UploadFile):
38
  content = await file.read()