1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-08 08:54:49 -04:00

Web API: resources and static file controller updates

This commit is contained in:
f4exb
2017-11-22 00:28:26 +01:00
parent cf2f099c37
commit e7dc0f9b53
3 changed files with 8 additions and 1 deletions
+7
View File
@@ -16,6 +16,8 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
///////////////////////////////////////////////////////////////////////////////////
//#include <QDirIterator>
#include "httpdocrootsettings.h"
#include "webapirequestmapper.h"
#include "SWGInstanceSummaryResponse.h"
@@ -71,6 +73,11 @@ void WebAPIRequestMapper::service(qtwebapp::HttpRequest& request, qtwebapp::Http
}
else
{
// QDirIterator it(":", QDirIterator::Subdirectories);
// while (it.hasNext()) {
// qDebug() << "WebAPIRequestMapper::service: " << it.next();
// }
QByteArray path = "/index.html";
m_staticFileController->service(path, response);
//response.setStatus(404,"Not found");