diff options
| author | Botond Hende <nettingman@gmail.com> | 2024-09-01 00:27:54 +0200 |
|---|---|---|
| committer | Botond Hende <nettingman@gmail.com> | 2024-09-01 00:27:54 +0200 |
| commit | e66fb136c8fd10fe8bafb273c938a3d332d997ba (patch) | |
| tree | 94623092ecb1bb6177ecc7b922aeaec429cc08d3 /__main__.py | |
| parent | 21019bc8414e60495573807b0fe0eb562a0e8876 (diff) | |
setting tasks for ships
Diffstat (limited to '__main__.py')
| -rw-r--r-- | __main__.py | 7 |
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} |
