From 9b43fb9988e53a579fd9dffbdc890b0817f575c2 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sat, 11 Oct 2025 20:57:35 +0530 Subject: changed /info response structure --- info.go | 4 +++- main.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/info.go b/info.go index 2f161a9..dc45f85 100644 --- a/info.go +++ b/info.go @@ -38,5 +38,7 @@ func serverInfo(ctx *gin.Context) { URL: viper.GetString("instance.url"), } - ctx.JSON(http.StatusOK, info) + ctx.JSON(http.StatusOK, gin.H{ + "data": info, + }) } diff --git a/main.go b/main.go index 9fe3f44..a2de7b1 100644 --- a/main.go +++ b/main.go @@ -38,7 +38,7 @@ import ( "log" ) -const OPENBILLS_VERSION = "v0.17.0" +const OPENBILLS_VERSION = "v0.17.1" func init() { if !viper.GetBool("debug_mode") { -- cgit v1.2.3