| 324 | } |
| 325 | |
| 326 | void Server::route(const string& method, const string& path, RouteHandler handler) { |
| 327 | mRoutes.push_back({method, path, handler}); |
| 328 | } |
| 329 | |
| 330 | void Server::get(const string& path, RouteHandler handler) { |
| 331 | route("GET", path, handler); |