跳到主要内容

add_route

添加路由

声明

void add_route(string method, string path, function handler)

参数

参数名描述
method允许的HTTP方法
path资源路径
handler处理函数

返回值

使用方式

返回文档