fix: small fixes
This commit is contained in:
parent
90ac8c6b7e
commit
b47d461934
|
|
@ -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"])
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue