feat(backend): enhance GetStat function to include admin URL in response for improved admin access

This commit is contained in:
keven1024
2025-06-02 01:18:22 +08:00
parent e88e6cb46a
commit baf9fa9e6d

View File

@@ -88,8 +88,9 @@ func GetStat(c echo.Context) error {
"file_size": maxStorageSize,
},
"admin": map[string]any{
"user_name": utils.GetEnv("ADMIN_NAME"),
"email": utils.GetEnv("ADMIN_EMAIL"),
"name": utils.GetEnv("ADMIN_NAME"),
"email": utils.GetEnv("ADMIN_EMAIL"),
"url": utils.GetEnv("ADMIN_URL"),
},
"chart": map[string]any{
"storage": storageChartData,