mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
[REST] set REST API behind "-rest" option
This commit is contained in:
parent
78bdc8103f
commit
5dc713bfc7
2 changed files with 2 additions and 1 deletions
|
|
@ -955,7 +955,7 @@ void ServiceConnection(AcceptedConnection *conn)
|
|||
break;
|
||||
|
||||
// Process via HTTP REST API
|
||||
} else if (strURI.substr(0, 6) == "/rest/") {
|
||||
} else if (strURI.substr(0, 6) == "/rest/" && GetBoolArg("-rest", false)) {
|
||||
if (!HTTPReq_REST(conn, strURI, mapHeaders, fRun))
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue