feat:读取前端版本号

This commit is contained in:
jxxghp 2024-04-25 10:18:38 +08:00
parent 1714990e2e
commit a11318390d

View File

@ -51,12 +51,11 @@ def get_env_setting(_: schemas.TokenPayload = Depends(verify_token)):
info = settings.dict( info = settings.dict(
exclude={"SECRET_KEY", "SUPERUSER_PASSWORD"} exclude={"SECRET_KEY", "SUPERUSER_PASSWORD"}
) )
frontend_version = SystemChain().get_frontend_version()
info.update({ info.update({
"VERSION": APP_VERSION, "VERSION": APP_VERSION,
"AUTH_VERSION": SitesHelper().auth_version, "AUTH_VERSION": SitesHelper().auth_version,
"INDEXER_VERSION": SitesHelper().indexer_version, "INDEXER_VERSION": SitesHelper().indexer_version,
"FRONTEND_VERSION": frontend_version "FRONTEND_VERSION": SystemChain().get_frontend_version()
}) })
return schemas.Response(success=True, return schemas.Response(success=True,
data=info) data=info)