Added a home route
Browse files
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()
|