Bug fixed for users api

This commit is contained in:
HuangDan 2017-10-11 20:08:01 +08:00
parent 97cf04d752
commit c43cae4348
1 changed files with 2 additions and 2 deletions

View File

@ -66,9 +66,9 @@
-http_api({"^users/?$", 'GET', users, []}). -http_api({"^users/?$", 'GET', users, []}).
-http_api({"^users/?$", 'POST', users, [{<<"username">>, binary}, -http_api({"^users/?$", 'POST', users, [{<<"username">>, binary},
{<<"password">>, binary}, {<<"password">>, binary},
{<<"tag">>, binary}]}). {<<"tags">>, binary}]}).
-http_api({"^users/(.+?)/?$", 'GET', users, []}). -http_api({"^users/(.+?)/?$", 'GET', users, []}).
-http_api({"^users/(.+?)/?$", 'PUT', users, []}). -http_api({"^users/(.+?)/?$", 'PUT', users, [{<<"tags">>, binary}]}).
-http_api({"^users/(.+?)/?$", 'DELETE', users, []}). -http_api({"^users/(.+?)/?$", 'DELETE', users, []}).
-http_api({"^auth/?$", 'POST', auth, [{<<"username">>, binary}, {<<"password">>, binary}]}). -http_api({"^auth/?$", 'POST', auth, [{<<"username">>, binary}, {<<"password">>, binary}]}).