1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 14:04:46 -04:00

Put web server for API in place in the main window (1)

This commit is contained in:
f4exb
2017-11-17 08:52:15 +01:00
parent 5628b580ce
commit 279a88a17f
8 changed files with 39 additions and 5 deletions
+5 -1
View File
@@ -27,7 +27,7 @@ void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::Http
{
if (m_adapter == 0) // format service unavailable if adapter is null
{
response.setStatus(500,"Service not available");
}
else // normal processing
{
@@ -37,5 +37,9 @@ void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::Http
{
}
else
{
response.setStatus(404,"Not found");
}
}
}