Advertisement
Guest User

Untitled

a guest
Nov 7th, 2024
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | Source Code | 0 0
  1. #include <iostream>
  2. #include "include/crow_all.h"
  3.  
  4. using namespace std;
  5.  
  6.  
  7. int main(int argc, const char** argv) {
  8.  
  9. crow::SimpleApp app;
  10. CROW_ROUTE(app, "/")([](){
  11. auto page = crow::mustache::load_text("main.html");
  12. return page;
  13. });
  14.  
  15. app.port(443)
  16. .ssl_file("./cert.crt", "./cert.key")
  17. .multithreaded()
  18. .run();
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement