Return whole configuration to client.

Related to #15
This commit is contained in:
Stanislav Nikitin 2020-04-27 03:45:43 +05:00
parent 66ec7f86ab
commit 412e404192
No known key found for this signature in database
GPG Key ID: 106900B32F8192EE
1 changed files with 1 additions and 1 deletions

View File

@ -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 {