vineelagampa commited on
Commit
18b7125
·
verified ·
1 Parent(s): 5210a5e

Update backend.py

Browse files
Files changed (1) hide show
  1. backend.py +4 -1
backend.py CHANGED
@@ -319,11 +319,14 @@ def analyze_text(text):
319
  }
320
 
321
 
322
- @app.get("/health")
323
  @app.get("/health/")
324
  def health():
325
  return {"response": "ok"}
326
 
 
 
 
 
327
 
328
  @app.on_event("startup")
329
  def _log_routes():
 
319
  }
320
 
321
 
 
322
  @app.get("/health/")
323
  def health():
324
  return {"response": "ok"}
325
 
326
+ @app.route("/save_report/")
327
+ async def save_report(request: Request):
328
+ data = await request.json()
329
+ print("Report recieved from frontend:", data)
330
 
331
  @app.on_event("startup")
332
  def _log_routes():