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