summaryrefslogtreecommitdiff
path: root/src/ejabberd_oauth_rest.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-05-08 12:59:28 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-05-08 12:59:28 +0300
commit01a2c9fe1202f88f20a5acbc729b627ce0ac3c0a (patch)
tree4aba0e94650d1311ab5b2da0e74563b1bd02a876 /src/ejabberd_oauth_rest.erl
parentLOG_PATH macro should be of string type (diff)
Add type specs for Module:opt_type/1
Diffstat (limited to 'src/ejabberd_oauth_rest.erl')
-rw-r--r--src/ejabberd_oauth_rest.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ejabberd_oauth_rest.erl b/src/ejabberd_oauth_rest.erl
index 6c5b3052..404edd1f 100644
--- a/src/ejabberd_oauth_rest.erl
+++ b/src/ejabberd_oauth_rest.erl
@@ -93,6 +93,8 @@ path(Path) ->
<<Base/binary, "/", Path/binary>>.
+-spec opt_type(ext_api_path_oauth) -> fun((binary()) -> binary());
+ (atom()) -> [atom()].
opt_type(ext_api_path_oauth) ->
fun (X) -> iolist_to_binary(X) end;
opt_type(_) -> [ext_api_path_oauth].