| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/Dmdv/expresscpp/master/example/readme.cpp | [Back] [Original] |
#include "expresscpp/expresscpp.hpp"
int main() {
auto expresscpp = std::make_shared();
expresscpp->Get("/", [](auto /*req*/, auto res) { res->Send("hello world!"); });
constexpr uint16_t port = 3000u;
expresscpp->Listen(port, [=](auto /*ec*/) { std::cout
| Web Proxy Viewer | New URL | Original Page |