summaryrefslogtreecommitdiff
path: root/app/controllers/api/v2/tutorials_controller.rb
blob: b72321b2982d54d2bd0fdf6b8afd6f10ccee5fd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
module Api
  module V2
    class TutorialsController < ApplicationController
      def index
        @tutorials = Tutorial.page(page).per(per_page)
      end

      def show(id = params[:id])
        @tutorial = Tutorial.find(id)
      end
    end
  end
end