Sha256: 591b40b423fc6b7a94281d18eb8e0039afdf1ba354d853f4ca51aac154c6eeb1
Contents?: true
Size: 465 Bytes
Versions: 1
Compression:
Stored size: 465 Bytes
Contents
require_dependency "phcscriptcdnpro/application_controller" module Phcscriptcdnpro class Api::VersionsController < ApplicationController # Only Responds to API Requests respond_to :json # Directory Category API def index @scriptcdn_versions = Scriptcdn::Version.all respond_to do |format| format.json { render :json => @scriptcdn_versions } end end def show @scriptcdn_version = Scriptcdn::Version.find(params[:id]) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phcscriptcdnpro-1.10.1 | app/controllers/phcscriptcdnpro/api/versions_controller.rb |