def get(request)
      name = request.path.last
      cookbook = store.find(name)

      if cookbook = store.find(name)
        respond({
          'name'            => cookbook.name,
          'maintainer'      => cookbook.maintainer,
          'category'        => cookbook.category,
          'external_url'    => cookbook.external_url,
          'description'     => cookbook.description,
          'average_rating'  => cookbook.average_rating,
          'versions'        => store.versions(cookbook).map { |i| version_url_for(cookbook, i) },
          'latest_version'  => version_url_for(cookbook, store.latest_version(cookbook)),
          'created_at'      => cookbook.created_at,
          'updated_at'      => cookbook.upadated_at,
        })
      else
        respond(404,
          {
            'error_code' => 'NOT_FOUND',
            'error_messages' => ['Resource not found'],
          }
        )
      end
    end
def get(request)
      name = request.path.last
      cookbook = store.find(name)

      if cookbook = store.find(name)
        respond({
          'name'            => cookbook.name,
          'maintainer'      => cookbook.maintainer,
          'category'        => cookbook.category,
          'external_url'    => cookbook.external_url,
          'description'     => cookbook.description,
          'average_rating'  => cookbook.average_rating,
          'versions'        => store.versions(cookbook).map { |i| version_url_for(cookbook, i) },
          'latest_version'  => version_url_for(cookbook, store.latest_version(cookbook)),
          'created_at'      => cookbook.created_at,
          'updated_at'      => cookbook.upadated_at,
        })
      else
        respond(404,
          {
            'error_code' => 'NOT_FOUND',
            'error_messages' => ['Resource not found'],
          }
        )
      end
    end
GET /cookbooks/:name