start work on like button, better html sanitisation

This commit is contained in:
2026-07-20 18:26:37 +10:00
parent d015b12277
commit 78aae0714c
4 changed files with 27 additions and 14 deletions

View File

@@ -36,8 +36,6 @@ int main() {
svr.Get("/", [&header, &footer, &database, &data_mutex](const httplib::Request& request, httplib::Response& response) {
std::cout << "requested /" << std::endl;
std::stringstream ss;
ss << header;
@@ -61,8 +59,6 @@ int main() {
svr.Post("/make_post", [&header, &footer, &database, &data_mutex](const httplib::Request& request, httplib::Response& response) {
std::cout << "making a post at /make_post" << std::endl;
std::string username = request.get_param_value("username");
std::string password = request.get_param_value("password");
std::string post = request.get_param_value("post");