added quick connect auth from jellyfin, still needs to have some more cleaning before push to prod
This commit is contained in:
@@ -4,8 +4,9 @@ from contextlib import asynccontextmanager
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
|
||||
from api.v1.auth import router as auth_router
|
||||
from api.v1.chat import router as v1_router
|
||||
from core.config import DEEPSEEK_API_KEY
|
||||
from core.config import DEEPSEEK_API_KEY, get_config
|
||||
from core.llm import create_client
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -18,12 +19,14 @@ logging.basicConfig(
|
||||
)
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Load all agents & skills so they self-register at startup
|
||||
# Load all agents, skills, AND auth services so they self-register at startup
|
||||
# ---------------------------------------------------------------------------
|
||||
from agents import load_all_agents # noqa: E402
|
||||
|
||||
load_all_agents()
|
||||
|
||||
import auth.jellyfin # noqa: E402 — self-registers JellyfinAuth
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Lifespan
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -60,4 +63,5 @@ app.state.agent_graphs: dict = {}
|
||||
# ---------------------------------------------------------------------------
|
||||
# Routers
|
||||
# ---------------------------------------------------------------------------
|
||||
app.include_router(v1_router, prefix="/v1")
|
||||
app.include_router(v1_router, prefix="/v1")
|
||||
app.include_router(auth_router)
|
||||
Reference in New Issue
Block a user