Omkar008 commited on
Commit
9b59406
·
verified ·
1 Parent(s): 7dceab0

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +7 -0
main.py CHANGED
@@ -19,4 +19,11 @@ async def test(request:Request):
19
  print("URL endpoint hit !!")
20
  return {"access_token":"abcd"}
21
 
 
 
 
 
 
 
 
22
  app.include_router(receipt_radar_callback_router.router)
 
19
  print("URL endpoint hit !!")
20
  return {"access_token":"abcd"}
21
 
22
+ @app.post("/test2")
23
+ async def test2(request:Request):
24
+ body = await request.json()
25
+ print(body.get('access_token',None))
26
+ print("Url endpoint test 2 hit !!")
27
+ return {"status":"True"}
28
+
29
  app.include_router(receipt_radar_callback_router.router)