Sirawitch commited on
Commit
86dc7b3
1 Parent(s): 9a6b3b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -11,6 +11,10 @@ class Query(BaseModel):
11
  queryResult: Optional[dict] = None
12
  queryText: Optional[str] = None
13
 
 
 
 
 
14
  @app.post("/webhook")
15
  async def webhook(query: Query):
16
  try:
 
11
  queryResult: Optional[dict] = None
12
  queryText: Optional[str] = None
13
 
14
+ @app.get("/")
15
+ async def root():
16
+ return {"message": "Welcome to the API"}
17
+
18
  @app.post("/webhook")
19
  async def webhook(query: Query):
20
  try: