Crow:设置网站的index.html

对于一个网展来说,index.html是其第一个页面,也是根页面,如何通过Crow来加载index.html呢。

Crow:静态资源使用举例-CSDN博客

讲述了静态资源的使用,也就是通常存饭html,css,jpg文件的地方

当然index.html也会放在这个目录,但通常是放在static的根目录,其他资源会根据资源类型放在子目录中

比如可以通过如下方式放置文件

$ tree static
static
├── img
│   └── goodday.jpg
└── index.html




Hello world

good day

 

//index.cpp
#include 
using namespace std;

int main()
{
    crow::SimpleApp app;

    app.port(8888).multi

你可能感兴趣的:(Crow,c++)