mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-22 16:08:39 -05:00
Web API: static page build on Linux
This commit is contained in:
parent
1b5f944302
commit
5e13c16cb6
@ -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
|
||||
|
@ -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");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user