app/controllers/api/global_bulletins_controller.rb
module Api
class GlobalBulletinsController < Api::AbstractController
skip_before_action :authenticate_user!
skip_before_action :check_fbos_version
def show
render json: search_results
end
private
def search_results
@search_results ||= GlobalBulletin.find_by(slug: params[:id])
end
end
end