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

17 lines
303 B
Ruby

module Api
module V1
class TemplatesController < ApplicationController
# doorkeeper_for :all, :scopes => [:public]
respond_to :json
def index
respond_with Template.all
end
def show
respond_with Template.find(params[:id])
end
end
end
end