module Api
module V1
class Blocks < Grape::API
resource :blocks do
get ':id' do
block = Block.find(params["id"])
return forbidden! unless block.visible_to_user?(current_person)
present block, :with => Entities::Block, display_api_content: true
end
end
end
end
end