blob: 700e71a44d16e3bb4d97a6b2d2c9522e93a0e68e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "crow/app.h"
#include "crow/mustache.h"
int main(int argc, char *argv[]) {
crow::SimpleApp app;
CROW_ROUTE(app, "/")
([]() {
auto page = crow::mustache::load("index.html");
return page.render();
});
app.multithreaded().port(18083).run();
return 0;
}
|