diff options
Diffstat (limited to 'rest-api-templates/stasis_http_resource.c.mustache')
-rw-r--r-- | rest-api-templates/stasis_http_resource.c.mustache | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/rest-api-templates/stasis_http_resource.c.mustache b/rest-api-templates/stasis_http_resource.c.mustache index 7a5535511..2610f6a5e 100644 --- a/rest-api-templates/stasis_http_resource.c.mustache +++ b/rest-api-templates/stasis_http_resource.c.mustache @@ -32,10 +32,22 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") {{#apis}} {{#operations}} -void stasis_http_{{c_nickname}}(struct ast_variable *headers, struct ast_{{c_nickname}}_args *args, struct stasis_http_response *response) +{{#is_req}} +void stasis_http_{{c_nickname}}(struct ast_variable *headers, + struct ast_{{c_nickname}}_args *args, + struct stasis_http_response *response) { ast_log(LOG_ERROR, "TODO: stasis_http_{{c_nickname}}\n"); } +{{/is_req}} +{{#is_websocket}} +void ari_websocket_{{c_nickname}}(struct ari_websocket_session *session, + struct ast_variable *headers, + struct ast_{{c_nickname}}_args *args) +{ + ast_log(LOG_ERROR, "TODO: ari_websocket_{{c_nickname}}\n"); +} +{{/is_websocket}} {{/operations}} {{/apis}} {{/api_declaration}} |