module-and-template-store/app/controllers/api/v1/templates_controller.rb

18 lines
294 B
Ruby
Raw Normal View History

module Api
module V1
2014-02-13 06:51:23 +00:00
class TemplatesController < Api::V1::BaseController
before_action :authorize_client
respond_to :json
2013-12-25 12:34:53 +00:00
def index
respond_with Template.all
2013-12-25 12:34:53 +00:00
end
def show
respond_with Template.find(params[:id])
2013-12-25 12:34:53 +00:00
end
end
end
end