X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=lib%2Fapiv1%2Fconfig.go;h=4b532175dfb7ef13c2c48d637e005a0246104a29;hb=d4f7b45c3fe483d3864534642f10cf8f6ee23ae9;hp=326b6fa56c0e61e629575852ce6ef07443c86071;hpb=c07adb807c41a1545a9a0f5bbf40080d86946538;p=src%2Fxds%2Fxds-server.git diff --git a/lib/apiv1/config.go b/lib/apiv1/config.go index 326b6fa..4b53217 100644 --- a/lib/apiv1/config.go +++ b/lib/apiv1/config.go @@ -5,7 +5,7 @@ import ( "sync" "github.com/gin-gonic/gin" - "github.com/iotbzh/xds-server/lib/common" + common "github.com/iotbzh/xds-common/golib" "github.com/iotbzh/xds-server/lib/xdsconfig" ) @@ -36,10 +36,5 @@ func (s *APIService) setConfig(c *gin.Context) { s.log.Debugln("SET config: ", cfgArg) - if err := s.mfolder.UpdateAll(cfgArg); err != nil { - common.APIError(c, err.Error()) - return - } - - c.JSON(http.StatusOK, s.cfg) + common.APIError(c, "Not Supported") }