diff options
Diffstat (limited to '__main__.py')
-rw-r--r-- | __main__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/__main__.py b/__main__.py index 03fb366..2434422 100644 --- a/__main__.py +++ b/__main__.py @@ -22,6 +22,6 @@ app = FastAPI(lifespan=lifespan) app.include_router(agents.router) -@app.get("/{callsign}/tasks") -async def get_tasks(callsign: str, token: Annotated[str, Depends(agents.oauth2_scheme)]): - return f'{{"callsign": "{callsign}", "token": "{token}"}}' +@app.get("/tasks") +async def get_tasks(agent: Annotated[agents.Agent, Depends(agents.auth_agent)]): + return {"callsign": agent.agent_symbol} |