Add folder interface and support native pathmap folder type.
[src/xds/xds-server.git] / lib / apiv1 / config.go
index 326b6fa..4b53217 100644 (file)
@@ -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")
 }