HTTPServer/__index.h
2019-05-31 14:25:19 -07:00

25 lines
820 B
C++

#ifndef ____index_h__
#define ____index_h__
#include "HTTPPage.h"
namespace http {
class __index : public HTTPPage {
int processCommand(std::string request, core::Session *session, HTTPSession *httpSession, std::stringstream &data) override {
data << "<http><head></head><body style=\"background: #006; color: #fff;\">\
<form action=\"setupadmin\" method=\"POST\"><div style=\"background: #44C; text: #888; padding: 20px;\"><p>You have successfully set up a JETServer.\
<br>Session Id: " << httpSession->getSessionId() << "\
<br>The configuration has not yet been established for this web site.</p>\
<button>Configure</button>\
</div></form></body></html>";
return true;
}
};
}
#endif