Stanislav N. aka pztrn
83a8694061
Implemented HTTP server with configuration getting stub. Implemented CLI client with configuration getting stub.
15 lines
276 B
Go
15 lines
276 B
Go
package serverv1
|
|
|
|
import (
|
|
// stdlib
|
|
"net/http"
|
|
|
|
// other
|
|
"github.com/labstack/echo"
|
|
)
|
|
|
|
// This function responsible for getting runtime configuration.
|
|
func configurationGET(ec echo.Context) error {
|
|
return ec.JSON(http.StatusOK, map[string]string{"result": "success"})
|
|
}
|