Spaces:
Sleeping
Sleeping
Commit ·
9852326
1
Parent(s): 942fc42
feat: register settings and plugins API routes
Browse files- backend/app/main.py +4 -1
backend/app/main.py
CHANGED
|
@@ -8,7 +8,8 @@ import uvicorn
|
|
| 8 |
from fastapi import FastAPI
|
| 9 |
from fastapi.middleware.cors import CORSMiddleware
|
| 10 |
|
| 11 |
-
from app.api.routes import agents, episode, health, memory, tasks, tools
|
|
|
|
| 12 |
from app.config import get_settings
|
| 13 |
from app.memory.manager import MemoryManager
|
| 14 |
from app.models.router import SmartModelRouter
|
|
@@ -115,6 +116,8 @@ def create_app() -> FastAPI:
|
|
| 115 |
app.include_router(agents.router, prefix=api_prefix, tags=["Agents"])
|
| 116 |
app.include_router(tools.router, prefix=api_prefix, tags=["Tools"])
|
| 117 |
app.include_router(memory.router, prefix=api_prefix, tags=["Memory"])
|
|
|
|
|
|
|
| 118 |
|
| 119 |
return app
|
| 120 |
|
|
|
|
| 8 |
from fastapi import FastAPI
|
| 9 |
from fastapi.middleware.cors import CORSMiddleware
|
| 10 |
|
| 11 |
+
from app.api.routes import agents, episode, health, memory, plugins, tasks, tools
|
| 12 |
+
from app.api.routes import settings as settings_routes
|
| 13 |
from app.config import get_settings
|
| 14 |
from app.memory.manager import MemoryManager
|
| 15 |
from app.models.router import SmartModelRouter
|
|
|
|
| 116 |
app.include_router(agents.router, prefix=api_prefix, tags=["Agents"])
|
| 117 |
app.include_router(tools.router, prefix=api_prefix, tags=["Tools"])
|
| 118 |
app.include_router(memory.router, prefix=api_prefix, tags=["Memory"])
|
| 119 |
+
app.include_router(settings_routes.router, prefix=api_prefix, tags=["Settings"])
|
| 120 |
+
app.include_router(plugins.router, prefix=api_prefix, tags=["Plugins"])
|
| 121 |
|
| 122 |
return app
|
| 123 |
|