Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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)
|