steveagi commited on
Commit
cf0e1f0
·
1 Parent(s): 8000682

sync vs async

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,8 +8,8 @@ async def root():
8
 
9
  @app.get("/info_sync")
10
  def info_sync():
11
- return {"message": "haha"}
12
 
13
  @app.get("/info_async")
14
  async def info_async():
15
- return {"message": "haha"}
 
8
 
9
  @app.get("/info_sync")
10
  def info_sync():
11
+ return {"message": "sync"}
12
 
13
  @app.get("/info_async")
14
  async def info_async():
15
+ return {"message": "async"}