mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 22:14:45 -04:00
Fixed sdrbase resource init
This commit is contained in:
@@ -49,6 +49,7 @@ WebAPIRequestMapper::WebAPIRequestMapper(QObject* parent) :
|
||||
HttpRequestHandler(parent),
|
||||
m_adapter(0)
|
||||
{
|
||||
Q_INIT_RESOURCE(webapi);
|
||||
qtwebapp::HttpDocrootSettings docrootSettings;
|
||||
docrootSettings.path = ":/webapi";
|
||||
m_staticFileController = new qtwebapp::StaticFileController(docrootSettings, parent);
|
||||
@@ -57,6 +58,7 @@ WebAPIRequestMapper::WebAPIRequestMapper(QObject* parent) :
|
||||
WebAPIRequestMapper::~WebAPIRequestMapper()
|
||||
{
|
||||
delete m_staticFileController;
|
||||
Q_CLEANUP_RESOURCE(webapi);
|
||||
}
|
||||
|
||||
void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::HttpResponse& response)
|
||||
|
||||
Reference in New Issue
Block a user