From e66fb136c8fd10fe8bafb273c938a3d332d997ba Mon Sep 17 00:00:00 2001 From: Botond Hende Date: Sun, 1 Sep 2024 00:27:54 +0200 Subject: setting tasks for ships --- __main__.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to '__main__.py') 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} -- cgit v1.2.3-70-g09d2