summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-06 15:31:40 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-11-06 15:31:52 +0100
commit57670b6f5a8e98c80670b0627bfad7dec7085f54 (patch)
treebd7b1bd2c8802d3f12361d9cf5ebfb31afb3b2ae /lib
parentf1886fb200406a6433669649c4f2448904876ec2 (diff)
Update api routes name (plural nouns)
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'lib')
-rw-r--r--lib/agent/xdsserver.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/agent/xdsserver.go b/lib/agent/xdsserver.go
index 37604b5..2037094 100644
--- a/lib/agent/xdsserver.go
+++ b/lib/agent/xdsserver.go
@@ -214,7 +214,7 @@ func (xs *XdsServer) GetFolders(folders *[]XdsFolderConfig) error {
// FolderAdd Send POST request to add a folder
func (xs *XdsServer) FolderAdd(fld *XdsFolderConfig, res interface{}) error {
- response, err := xs._HTTPPost("/folder", fld)
+ response, err := xs._HTTPPost("/folders", fld)
if err != nil {
return err
}
@@ -229,12 +229,12 @@ func (xs *XdsServer) FolderAdd(fld *XdsFolderConfig, res interface{}) error {
// FolderDelete Send DELETE request to delete a folder
func (xs *XdsServer) FolderDelete(id string) error {
- return xs.client.HTTPDelete("/folder/" + id)
+ return xs.client.HTTPDelete("/folders/" + id)
}
// FolderSync Send POST request to force synchronization of a folder
func (xs *XdsServer) FolderSync(id string) error {
- return xs.client.HTTPPost("/folder/sync/"+id, "")
+ return xs.client.HTTPPost("/folders/sync/"+id, "")
}
// SetAPIRouterGroup .