Masterctrl/Sources/HttpServer/HttpServer.cpp
2021-05-26 04:15:57 -04:00

26 lines
354 B
C++

#include "HttpServer.h"
CHttpServer::CHttpServer()
{
mHttpServer = new QHttpServer;
mHttpServer->route("/", []()
{
qDebug("Test");
return "Ja Mon CB!!!!";
});
const auto port = mHttpServer->listen(QHostAddress::Any,8080);
qDebug("Server Opened");
}
CHttpServer::~CHttpServer()
{
delete mHttpServer;
}