Sha256: c4478d02e33aebb93c2d954a86e4d8f3353d7fe47a5c87bce6e3b911300184d7
Contents?: true
Size: 439 Bytes
Versions: 7
Compression:
Stored size: 439 Bytes
Contents
require_dependency 'plug/application_controller' module Plug module Api class SiteNoticesController < ApiController # GET /site_notices.json def index @site_notices = SiteNotice.all render json: @site_notices end # GET /site_notices/slug.json def show @site_notice = SiteNotice.slug_and_name(params[:slug]).first render json: @site_notice end end end end
Version data entries
7 entries across 7 versions & 1 rubygems