1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

Web API: reply 501 if /sdrdaemon requests are sent to a SDRangel instance

This commit is contained in:
f4exb 2018-08-18 10:02:53 +02:00
parent 7dbb36e0b6
commit 5f15936820

View File

@ -87,6 +87,16 @@ void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::Http
return;
}
if (path.startsWith("/sdrdaemon"))
{
SWGSDRangel::SWGErrorResponse errorResponse;
response.setStatus(501,"Not implemented");
errorResponse.init();
*errorResponse.getMessage() = "Not implemented";
response.write(errorResponse.asJson().toUtf8());
return;
}
if (path == WebAPIAdapterInterface::instanceSummaryURL) {
instanceSummaryService(request, response);
} else if (path == WebAPIAdapterInterface::instanceDevicesURL) {