ekmpa commited on
Commit
fa6920b
·
verified ·
1 Parent(s): 9e52e51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,8 +25,8 @@ def load_data():
25
  def health():
26
  return {"status": "ok", "rows": len(lookup)}
27
 
28
- @app.get("/score")
29
- def get_score(domain: str):
30
  score = lookup.get(domain)
31
  if score is None:
32
  raise HTTPException(status_code=404, detail="Domain not found")
 
25
  def health():
26
  return {"status": "ok", "rows": len(lookup)}
27
 
28
+ @app.get("/by_domain/{domain}")
29
+ def get_score_score(domain: str):
30
  score = lookup.get(domain)
31
  if score is None:
32
  raise HTTPException(status_code=404, detail="Domain not found")