6 ms·
that example isn't very good.. here's what the resource-registration for "/products" endpoint would look like (note the http method), where I've lazily omitted
by Dowwie 7y ago
that example isn't very good.. here's what the resource-registration for "/products" endpoint would look like (note the http method), where I've lazily omitted "/products" a level above because I wanted you just to see the http methods:
web::resource("")
.route(web::get().to_async(products::get_products))
.route(web::post().to_async(products::add_product))
- mdtusz 7y agoThis syntax makes it look almost like [warp's](https://github.com/seanmonstar/warp https://github.com/seanmonstar/warp) "filters".