Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "include/crow_all.h"
- using namespace std;
- int main(int argc, const char** argv) {
- crow::SimpleApp app;
- CROW_ROUTE(app, "/")([](){
- auto page = crow::mustache::load_text("main.html");
- return page;
- });
- app.port(443)
- .ssl_file("./cert.crt", "./cert.key")
- .multithreaded()
- .run();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement