Sha256: 8cbb1b0969981999af25b199635b4dd810337d74bc65356858cbb7598ce17dea

Contents?: true

Size: 322 Bytes

Versions: 4

Compression:

Stored size: 322 Bytes

Contents

require_dependency "phcscriptcdnpro/application_controller"

module Phcscriptcdnpro
	class Api::MainsController < ApplicationController

		# Script List API
		def index
			@scriptcdn_mains = Scriptcdn::Main.all
		end
		
		# Script Show API
		def show
			@scriptcdn_main = Scriptcdn::Main.find(params[:id])
		end

	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phcscriptcdnpro-2.1.0 app/controllers/phcscriptcdnpro/api/mains_controller.rb
phcscriptcdnpro-2.0.3 app/controllers/phcscriptcdnpro/api/mains_controller.rb
phcscriptcdnpro-2.0.2 app/controllers/phcscriptcdnpro/api/mains_controller.rb
phcscriptcdnpro-2.0.1 app/controllers/phcscriptcdnpro/api/mains_controller.rb