forked from chookspace/chookchat
start work on like button, better html sanitisation
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user