csvaldellon commited on
Commit
d1c8710
·
1 Parent(s): 03d59b8

test: remove async

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -11,16 +11,16 @@ class WebhookRequest(BaseModel):
11
  message: str
12
 
13
  @app.get("/favicon.ico")
14
- async def favicon():
15
  return FileResponse("static/favicon.ico", media_type="image/x-icon")
16
 
17
  @app.get("/")
18
  @app.get("/home")
19
- async def home():
20
  return "Hello World"
21
 
22
  @app.post("/webhook")
23
- async def webhook(request: WebhookRequest):
24
  # Access request body using request object
25
  print(request)
26
  return {"fulfillmentText": "Hello from the bot world"}
 
11
  message: str
12
 
13
  @app.get("/favicon.ico")
14
+ def favicon():
15
  return FileResponse("static/favicon.ico", media_type="image/x-icon")
16
 
17
  @app.get("/")
18
  @app.get("/home")
19
+ def home():
20
  return "Hello World"
21
 
22
  @app.post("/webhook")
23
+ def webhook(request: WebhookRequest):
24
  # Access request body using request object
25
  print(request)
26
  return {"fulfillmentText": "Hello from the bot world"}