imported routers to fastapi app routers

This commit is contained in:
2025-08-07 18:57:41 +03:00
parent 10310b9416
commit aeed5ea45c
3 changed files with 6 additions and 4 deletions

View File

@ -3,8 +3,10 @@ import sys
from fastapi import FastAPI
from loguru import logger
from api.accounts import accounts_router
from api.anon import anon_router
from api.auth import auth_router
from api.feeds import feeds_router
from api.general import general_router
from api.groups import groups_router
from api.memberships import memberships_router
@ -45,8 +47,10 @@ def create_app():
app.include_router(users_router)
app.include_router(groups_router)
app.include_router(memberships_router)
app.include_router(pictures_router)
app.include_router(accounts_router)
app.include_router(feeds_router)
app.include_router(swipes_router)
app.include_router(pictures_router)
app.add_event_handler("shutdown", disconnect_db)
app.add_event_handler("shutdown", settings_down)