Expose BanGUI version in API responses (dashboard + config)

This commit is contained in:
2026-03-19 19:19:42 +01:00
parent 80a6bac33e
commit 1cc9968d31
6 changed files with 22 additions and 3 deletions

View File

@@ -19,6 +19,7 @@ if TYPE_CHECKING:
from fastapi import APIRouter, Query, Request
from app import __version__
from app.dependencies import AuthDep
from app.models.ban import (
BanOrigin,
@@ -69,7 +70,7 @@ async def get_server_status(
"server_status",
ServerStatus(online=False),
)
return ServerStatusResponse(status=cached)
return ServerStatusResponse(status=cached, bangui_version=__version__)
@router.get(