diff --git a/controller.plugin/ROOT/main.go b/controller.plugin/ROOT/main.go index de033ae..a4d7781 100644 --- a/controller.plugin/ROOT/main.go +++ b/controller.plugin/ROOT/main.go @@ -31,7 +31,7 @@ func (rctl RootController) Get(d i.Arguments) i.Response { if !ok { r.Err = e.InvalidParam - r.Err.BindArgument("url") + r.Err.Put("url") return *r } diff --git a/controller.plugin/token/main.go b/controller.plugin/token/main.go index 782b77b..2f67d51 100644 --- a/controller.plugin/token/main.go +++ b/controller.plugin/token/main.go @@ -34,7 +34,7 @@ func (tctl TokenController) Post(d i.Arguments) i.Response { role, ok := d["role"].(string) if !ok { r.Err = e.InvalidParam - r.Err.BindArgument("url") + r.Err.Put("url") return *r }