summaryrefslogtreecommitdiff
path: root/__main__.py
diff options
context:
space:
mode:
Diffstat (limited to '__main__.py')
-rw-r--r--__main__.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/__main__.py b/__main__.py
index 2434422..36cbc28 100644
--- a/__main__.py
+++ b/__main__.py
@@ -3,7 +3,7 @@ from typing import Annotated
from fastapi import FastAPI, Depends
-from .apirouters import agents
+from .apirouters import agents, tasks
from .modules.database import cursor, conn
@@ -20,8 +20,5 @@ async def lifespan(app: FastAPI):
app = FastAPI(lifespan=lifespan)
app.include_router(agents.router)
+app.include_router(tasks.router)
-
-@app.get("/tasks")
-async def get_tasks(agent: Annotated[agents.Agent, Depends(agents.auth_agent)]):
- return {"callsign": agent.agent_symbol}