summaryrefslogtreecommitdiff
path: root/__main__.py
diff options
context:
space:
mode:
authorBotond Hende <nettingman@gmail.com>2024-09-01 00:27:54 +0200
committerBotond Hende <nettingman@gmail.com>2024-09-01 00:27:54 +0200
commite66fb136c8fd10fe8bafb273c938a3d332d997ba (patch)
tree94623092ecb1bb6177ecc7b922aeaec429cc08d3 /__main__.py
parent21019bc8414e60495573807b0fe0eb562a0e8876 (diff)
setting tasks for ships
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}