Implemented directory listing
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
#include "webapplication.h"
|
||||
|
||||
#include <QDir>
|
||||
|
||||
class QJsonObject;
|
||||
|
||||
class WebServer;
|
||||
@@ -9,6 +11,8 @@ class WebServer;
|
||||
class FileserverApplication : public WebApplication
|
||||
{
|
||||
Q_OBJECT
|
||||
static const QString SERVER_NAME;
|
||||
static const QDir PLUGIN_RESOURCES_DIR;
|
||||
|
||||
public:
|
||||
FileserverApplication(const QJsonObject &config, WebServer &webServer);
|
||||
@@ -18,5 +22,8 @@ public:
|
||||
void handleRequest(HttpClientConnection *connection, const HttpRequest &request) Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
static QString formatSize(qint64 size);
|
||||
|
||||
WebServer &m_webServer;
|
||||
QDir m_rootPath;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user