Sha256: ef9ba8c44cd87ee6c87f9cd713512dd0799720bed218a9f43fe4ab22ef5d5be8

Contents?: true

Size: 489 Bytes

Versions: 2

Compression:

Stored size: 489 Bytes

Contents

require_dependency "phcscriptcdnpro/application_controller"

module Phcscriptcdnpro
	class Api::InformationsController < ApplicationController

		# Only Responds to API Requests
		respond_to :json

		# Directory Category API
		def index
			@scriptcdn_informations = Scriptcdn::Information.all
			respond_to do |format|
				format.json { render :json => @scriptcdn_informations }
			end
		end

		def show
			@scriptcdn_information = Scriptcdn::Information.find(params[:id])
		end

	end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phcscriptcdnpro-1.10.1 app/controllers/phcscriptcdnpro/api/informations_controller.rb
phcscriptcdnpro-1.10.0 app/controllers/phcscriptcdnpro/api/informations_controller.rb