Add example config to mod_http_api documentation

This commit is contained in:
Badlop 2021-08-18 13:39:17 +02:00
parent 8af66b0831
commit b7f7713fae
1 changed files with 11 additions and 1 deletions

View File

@ -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: {}"]}.