MT#56447 support /janus URI

Another alias URI endpoint to handle requests

Change-Id: Ib085580fd34164765bff7863b05ae118ad271176
pull/1611/head
Richard Fuchs 3 years ago
parent affe8e8cd2
commit 8a5a99d6fe

@ -589,6 +589,8 @@ static int websocket_http_body(struct websocket_conn *wc, const char *body, size
handler = websocket_http_ng;
else if (!strcmp(uri, "/admin") && wm->method == M_POST && wm->content_type == CT_JSON)
handler = websocket_janus_process;
else if (!strcmp(uri, "/janus") && wm->method == M_POST && wm->content_type == CT_JSON)
handler = websocket_janus_process;
if (!handler) {
ilogs(http, LOG_WARN, "Unhandled HTTP POST URI: '%s'", wm->uri);

Loading…
Cancel
Save