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 662d7f3..55fa740 100644 --- a/__main__.py +++ b/__main__.py @@ -2,7 +2,7 @@ from contextlib import asynccontextmanager from fastapi import FastAPI -from .apirouters import agents, tasks, customize_ship +from .apirouters import auth, tasks, customize_ship from .modules.database import cursor, conn @@ -13,12 +13,12 @@ async def lifespan(application: FastAPI): cursor.execute( "CREATE TABLE IF NOT EXISTS ships(primary_key INTEGER PRIMARY KEY, symbol TEXT NOT NULL UNIQUE, task TEXT NOT NULL, params TEXT, name TEXT)") conn.commit() - agents.load_agents_from_database() + auth.load_agents_from_database() yield app = FastAPI(lifespan=lifespan) -app.include_router(agents.router) +app.include_router(auth.router) app.include_router(tasks.router) app.include_router(customize_ship.router) |