diff --git a/libguh-core/guhconfiguration.h b/libguh-core/guhconfiguration.h index 02b7da49..d4a58ded 100644 --- a/libguh-core/guhconfiguration.h +++ b/libguh-core/guhconfiguration.h @@ -117,6 +117,8 @@ private: void setServerUuid(const QUuid &uuid); void setWebServerPublicFolder(const QString & path); + QString defaultWebserverPublicFolderPath() const; + void storeServerConfig(const QString &group, const ServerConfiguration &config); ServerConfiguration readServerConfig(const QString &group, const QString &id); void deleteServerConfig(const QString &group, const QString &id); diff --git a/libguh-core/webserver.cpp b/libguh-core/webserver.cpp index 336717a5..8224f673 100644 --- a/libguh-core/webserver.cpp +++ b/libguh-core/webserver.cpp @@ -139,18 +139,6 @@ void WebServer::sendHttpReply(HttpReply *reply) socket->write(reply->data()); } -QString WebServer::defaultPublicFolderPath() const -{ - QString publicFolderPath; - if (!qgetenv("SNAP").isEmpty()) { - publicFolderPath = QString(qgetenv("SNAP")) + "/guh-webinterface"; - } else { - publicFolderPath = - } - - -} - bool WebServer::verifyFile(QSslSocket *socket, const QString &fileName) { QFileInfo file(fileName);