Template
1
0

Reorganising further

This commit is contained in:
2025-06-26 01:59:18 +03:00
parent 095dd8ddf9
commit ea8b8c884e
8 changed files with 31 additions and 15 deletions

View File

@@ -1,10 +1,5 @@
#include "Helpers.hpp"
#include "main.hpp"
#include <asio/impl/write.hpp>
#include <cstddef>
#include <sstream>
#include <string>
#include <system_error>
void HTTPrequest::start() {
// Possible Logging here
@@ -67,9 +62,7 @@ void HTTPrequest::processRequest(
switch (Helpers::Pathhash(requestPath)) {
case "/"_hash:
responseStream << "200 OK" << responseMeta
<< "<html><head><title>Hello "
"you!</title></head><body><h1>Test</h1><p>pretty "
"cool</p></body></html>";
<< Helpers::ReadFile("www/index.html");
break;
}
writeData(responseStream.str());