Explorar o código

Merge pull request #1290 from emqtt/develop

Bug fixed for users api
huangdan %!s(int64=8) %!d(string=hai) anos
pai
achega
63beb4e62a
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/emqttd_rest_api.erl

+ 2 - 2
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}]}).