BrainAPI is a knowledge graph–powered AI memory layer that transforms unstructured data into structured knowledge, enabling intelligent search, recommendations, and contextual memory for AI agents and applications.
Python ai-agentsai-memoryknowledge-graphknowledge-managementknowledge-representationreccomendation-system
feat(api): added cors
Christian841e8fe464f9
diff --git a/pyproject.toml b/pyproject.tomlindex 315e0ee..c916424 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,6 +1,6 @@[project]name = "brainapi2"-version = "1.3.0-dev"+version = "1.3.1-dev"description = "Version 1.x.x of the BrainAPI memory layer."authors = [{name = "Christian",email = "[email protected]"}diff --git a/src/services/api/app.py b/src/services/api/app.pyindex f811acb..9e4205c 100644--- a/src/services/api/app.py+++ b/src/services/api/app.py@@ -11,6 +11,7 @@ Modified By: the developer formerly known as Christian Nonis at <alch.infoemail@import osfrom fastapi import FastAPI+from fastapi.middleware.cors import CORSMiddlewarefrom uvicorn import runfrom src.services.api.routes.ingest import ingest_router@@ -19,6 +20,14 @@ from src.services.api.routes.meta import meta_routerapp = FastAPI()+app.add_middleware(+ CORSMiddleware,+ allow_origins=["*"],+ allow_credentials=True,+ allow_methods=["*"],+ allow_headers=["*"],+)+app.include_router(ingest_router)app.include_router(retrieve_router)app.include_router(meta_router)