fix: small fixes

This commit is contained in:
itqop 2025-10-15 22:52:40 +03:00
parent 90ac8c6b7e
commit b47d461934
2 changed files with 2 additions and 4 deletions

View File

@ -5,7 +5,7 @@ from hubgw.api.v1 import health, homes, kits, cooldowns, warps, whitelist, punis
api_router = APIRouter()
# Include all sub-routers
api_router.include_router(health.router, prefix="/health", tags=["health"])
api_router.include_router(homes.router, prefix="/homes", tags=["homes"])
api_router.include_router(kits.router, prefix="/kits", tags=["kits"])

View File

@ -3,6 +3,7 @@ from contextlib import asynccontextmanager
from fastapi import FastAPI
from hubgw.core.logging import setup_logging
from hubgw.context import AppContext
from hubgw.api.v1.router import api_router
@asynccontextmanager
@ -23,11 +24,8 @@ def create_app() -> FastAPI:
lifespan=lifespan
)
# Setup logging
setup_logging()
# Include routers
from hubgw.api.v1.router import api_router
app.include_router(api_router, prefix="/api/v1")
return app