Web API: static page build on Linux

This commit is contained in:
f4exb 2017-11-20 23:57:53 +01:00
parent 1b5f944302
commit 5e13c16cb6
2 changed files with 4 additions and 4 deletions

View File

@ -231,13 +231,13 @@ if (BUILD_DEBIAN)
include_directories(${LIBSERIALDVSRC})
endif (BUILD_DEBIAN)
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_SHARED)
set(sdrbase_RESOURCES
resources/res.qrc
)
add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_SHARED)
qt5_add_resources(sdrbase_RESOURCES_RCC ${sdrbase_RESOURCES})
add_library(sdrbase SHARED

View File

@ -71,7 +71,7 @@ void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::Http
}
else
{
QByteArray path = "/";
QByteArray path = "/index.html";
m_staticFileController->service(path, response);
//response.setStatus(404,"Not found");
}