Mark WilkensXL build versions
Some checks failed
Container Image / build-and-push (push) Has been cancelled
Some checks failed
Container Image / build-and-push (push) Has been cancelled
This commit is contained in:
19
app.py
19
app.py
@@ -924,8 +924,23 @@ async def serve_login(request: Request):
|
||||
|
||||
@app.get("/api/version")
|
||||
async def get_version():
|
||||
from core.constants import APP_VERSION
|
||||
return {"version": APP_VERSION}
|
||||
from core.constants import (
|
||||
APP_VERSION,
|
||||
BUILD_FLAVOR,
|
||||
BUILD_REVISION,
|
||||
BUILD_VERSION,
|
||||
FULL_VERSION,
|
||||
UPSTREAM_VERSION,
|
||||
)
|
||||
return {
|
||||
"version": BUILD_VERSION,
|
||||
"upstream_version": UPSTREAM_VERSION,
|
||||
"app_version": APP_VERSION,
|
||||
"build_flavor": BUILD_FLAVOR,
|
||||
"build_revision": BUILD_REVISION,
|
||||
"build_version": BUILD_VERSION,
|
||||
"full_version": FULL_VERSION,
|
||||
}
|
||||
|
||||
@app.get("/api/health")
|
||||
async def health_check() -> Dict[str, str]:
|
||||
|
||||
Reference in New Issue
Block a user