X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fxds%2Fxds-agent.git;a=blobdiff_plain;f=lib%2Fagent%2Fapiv1-projects.go;h=281886fe1377ac020460150b59418db955c7c09c;hp=57848969f7543f4bac319f235908a10fb188b647;hb=7c7d90a781082c6bd22d12a5e2451ca61a5198af;hpb=b9239d295a7fb7e3f5c595887b3bf77d50c8b216 diff --git a/lib/agent/apiv1-projects.go b/lib/agent/apiv1-projects.go index 5784896..281886f 100644 --- a/lib/agent/apiv1-projects.go +++ b/lib/agent/apiv1-projects.go @@ -4,7 +4,7 @@ import ( "net/http" "github.com/gin-gonic/gin" - "github.com/iotbzh/xds-agent/lib/apiv1" + "github.com/iotbzh/xds-agent/lib/xaapiv1" common "github.com/iotbzh/xds-common/golib" ) @@ -31,7 +31,7 @@ func (s *APIService) getProject(c *gin.Context) { // addProject adds a new project to server config func (s *APIService) addProject(c *gin.Context) { - var cfgArg apiv1.ProjectConfig + var cfgArg xaapiv1.ProjectConfig if c.BindJSON(&cfgArg) != nil { common.APIError(c, "Invalid arguments") return @@ -93,7 +93,7 @@ func (s *APIService) updateProject(c *gin.Context) { return } - var cfgArg apiv1.ProjectConfig + var cfgArg xaapiv1.ProjectConfig if c.BindJSON(&cfgArg) != nil { common.APIError(c, "Invalid arguments") return