davidepanza commited on
Commit
6e5a18b
·
verified ·
1 Parent(s): 51c08bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -55,6 +55,11 @@ def list_tables():
55
  except Exception as e:
56
  return {"error": str(e)}
57
 
 
 
 
 
 
58
  @app.post("/api/search")
59
  def search_books(book_request: BookRequest):
60
  if not book_request.query:
 
55
  except Exception as e:
56
  return {"error": str(e)}
57
 
58
+ @app.get("/api/test")
59
+ def test_endpoint():
60
+ print("TEST ENDPOINT HIT!")
61
+ return {"message": "API is working"}
62
+
63
  @app.post("/api/search")
64
  def search_books(book_request: BookRequest):
65
  if not book_request.query: