add new endpoints
This commit is contained in:
@@ -107,13 +107,7 @@ func DeleteUser(c echo.Context) error {
|
||||
func UpdateUser(c echo.Context) (err error) {
|
||||
id := c.Param("id")
|
||||
|
||||
// Bind
|
||||
u := new(model.User)
|
||||
if err = c.Bind(u); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
data, err := api.PatchRequest(config.Env.MSHosts.UsersHost+"/"+id, u, c.Request().Header)
|
||||
data, err, _ := api.PatchRequest(config.Env.MSHosts.UsersHost+"/"+id, c.Request().Body, c.Request().Header)
|
||||
|
||||
if err != nil {
|
||||
return c.NoContent(http.StatusBadGateway)
|
||||
|
||||
Reference in New Issue
Block a user