// }}} // {{{ buckets bool ApiRequest::processBucket() { // methods: GET, PUT, POST, DELETE // route: /:director_id/buckets/:bucket_id Director* director = findDirector(tokens_[0]); if (!director) return resourceNotFound("director", tokens_[0].str()); // XXX The capture-by-value is intentional, as captures might not be reachable within the block. director->post([=]() { processBucket(director); }); return true; }