mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Add example config to mod_http_api documentation
This commit is contained in:
parent
8af66b0831
commit
b7f7713fae
@ -533,4 +533,14 @@ mod_doc() ->
|
||||
"in the request_handlers, add a 'vN'. "
|
||||
"For example: '/api/v2: mod_http_api'"), "",
|
||||
?T("To run a command, send a POST request to the corresponding "
|
||||
"URL: 'http://localhost:5280/api/<command_name>'")]}.
|
||||
"URL: 'http://localhost:5280/api/<command_name>'")],
|
||||
example =>
|
||||
["listen:",
|
||||
" -",
|
||||
" port: 5280",
|
||||
" module: ejabberd_http",
|
||||
" request_handlers:",
|
||||
" /api: mod_http_api",
|
||||
"",
|
||||
"modules:",
|
||||
" mod_http_api: {}"]}.
|
||||
|
Loading…
Reference in New Issue
Block a user