From 412e4041926f417e4be368c19f78a10a230fcfe2 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Mon, 27 Apr 2020 03:45:43 +0500 Subject: [PATCH] Return whole configuration to client. Related to #15 --- domains/server/v1/configapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domains/server/v1/configapi.go b/domains/server/v1/configapi.go index 5bb9dce..6fdd231 100644 --- a/domains/server/v1/configapi.go +++ b/domains/server/v1/configapi.go @@ -14,7 +14,7 @@ import ( // This function responsible for getting runtime configuration. func configurationGET(ec echo.Context) error { - return ec.JSON(http.StatusOK, map[string]string{"result": "success"}) + return ec.JSON(http.StatusOK, configuration.Cfg.GetAllPackagesInfo()) } func configurationAllowedIPsSET(ec echo.Context) error {