Reorganising further
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user