diff --git a/backend/app/core/config.py b/backend/app/core/config.py index 08a4df1..baea55f 100644 --- a/backend/app/core/config.py +++ b/backend/app/core/config.py @@ -96,6 +96,8 @@ class StagingConfig(BaseConfig): ALLOWED_HOSTS: List[str] = [ "taimako.onrender.com", "taimakoai.onrender.com", + "localhost", + "127.0.0.1", ] class ProductionConfig(BaseConfig): diff --git a/backend/app/main.py b/backend/app/main.py index 79904aa..80c8c0c 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -91,10 +91,10 @@ app.include_router(orders_router) -@app.get("/") +@app.api_route("/", methods=["GET", "HEAD"]) async def root(): return success_response(message="Agentic RAG API is running") -@app.get("/health") +@app.api_route("/health", methods=["GET", "HEAD"]) async def health_check(): return {"status": "healthy"}