#include "TF_WebApp.hpp" using namespace Tesses::Framework::Http; using namespace Tesses::Framework; TF_WebApp(MyApp,nullptr) std::shared_ptr MyApp(std::vector& args) { TF_WebAppSetTitle("Print Args"); return std::make_shared([&args](ServerContext& ctx)->bool { if(ctx.path == "/") { std::string text = "

Hello, world

    "; for(auto item : args) text += "
  • " + HttpUtils::HtmlEncode(item) + "
  • "; text += "
"; ctx.WithMimeType("text/html").SendText(text); return true; } return false; }); }