From c43cae4348c2878241cc24c0ee800bc710167568 Mon Sep 17 00:00:00 2001 From: HuangDan Date: Wed, 11 Oct 2017 20:08:01 +0800 Subject: [PATCH] Bug fixed for users api --- src/emqttd_rest_api.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/emqttd_rest_api.erl b/src/emqttd_rest_api.erl index 0c4bae3bf..85981ea45 100644 --- a/src/emqttd_rest_api.erl +++ b/src/emqttd_rest_api.erl @@ -66,9 +66,9 @@ -http_api({"^users/?$", 'GET', users, []}). -http_api({"^users/?$", 'POST', users, [{<<"username">>, binary}, {<<"password">>, binary}, - {<<"tag">>, binary}]}). + {<<"tags">>, binary}]}). -http_api({"^users/(.+?)/?$", 'GET', users, []}). --http_api({"^users/(.+?)/?$", 'PUT', users, []}). +-http_api({"^users/(.+?)/?$", 'PUT', users, [{<<"tags">>, binary}]}). -http_api({"^users/(.+?)/?$", 'DELETE', users, []}). -http_api({"^auth/?$", 'POST', auth, [{<<"username">>, binary}, {<<"password">>, binary}]}).