Files
2016-06-02 14:40:30 +02:00

20 lines
400 B
Ruby

module Suppliers
class PagesController < Suppliers::ApplicationController
before_action :find_page, only: [:show]
def index
@pages = Page.all_for_suppliers(locale: params[:locale])
render json: @pages
end
def show
render json: @page
end
private
def find_page
@page = Page.suppliers_page(params[:id], locale: params[:locale])
end
end
end