summaryrefslogtreecommitdiff
path: root/app/controllers/api/v3/galleries_controller.rb
blob: 3660758dc9ff5b9205b529e805cea4df38dfc66c (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true
class Api::V3::GalleriesController < Api::V3::ApiController
  def show
    gallery = Gallery.find(params[:id])
    authorize! :read, gallery

    render json: { gallery: GallerySerializer.serialize(gallery) }
  end
end