Sha256: 2219c4e6c88048f8fa8d782b04cde1e0315ed58a99a1ba6f7d152a3b74b70abd
Contents?: true
Size: 288 Bytes
Versions: 1
Compression:
Stored size: 288 Bytes
Contents
module Gemgento class Api::V1::CategoriesController < ApplicationController include ::Gemgento::Api::V1::Base def index @categories = Category.all.page(@page[:number]).per(@page[:size]) end def show @category = Category.find(params[:id]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemgento-2.8.0 | app/controllers/gemgento/api/v1/categories_controller.rb |