mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
actually implement HTTP request dispatching based on both URI and method; reduce duplication of data when generating responses using ast_http_error()
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109912 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3649,22 +3649,22 @@ static struct ast_str *rawman_http_callback(struct ast_tcptls_session_instance *
|
||||
struct ast_http_uri rawmanuri = {
|
||||
.description = "Raw HTTP Manager Event Interface",
|
||||
.uri = "rawman",
|
||||
.has_subtree = 0,
|
||||
.callback = rawman_http_callback,
|
||||
.supports_get = 1,
|
||||
};
|
||||
|
||||
struct ast_http_uri manageruri = {
|
||||
.description = "HTML Manager Event Interface",
|
||||
.uri = "manager",
|
||||
.has_subtree = 0,
|
||||
.callback = manager_http_callback,
|
||||
.supports_get = 1,
|
||||
};
|
||||
|
||||
struct ast_http_uri managerxmluri = {
|
||||
.description = "XML Manager Event Interface",
|
||||
.uri = "mxml",
|
||||
.has_subtree = 0,
|
||||
.callback = mxml_http_callback,
|
||||
.supports_get = 1,
|
||||
};
|
||||
|
||||
static int registered = 0;
|
||||
|
Reference in New Issue
Block a user