Sha256: 4403ee63ce79adde2f8dbce36661de6fd7ee38630108f88b951495a43989e711

Contents?: true

Size: 766 Bytes

Versions: 4

Compression:

Stored size: 766 Bytes

Contents

Phcscriptcdn::Engine.routes.draw do

	# API Routes
	namespace :api, :path => "", :constraints => {:subdomain => "api"} do
		namespace :v1 do
			resources :mains, defaults: {format: "json"}
			resources :informations, defaults: {format: "json"}
			resources :versions, defaults: {format: "json"}
		end
	end

	# Script CDN Routes
	namespace :script do
		resources :listings, class_name: "Phcscriptcdn::Script::Listing" do
			resources :urls, class_name: "Phcscriptcdn::Script::Url"
		end
		resources :authors, class_name: "Phcscriptcdn::Script::Author"
		resources :extensions, class_name: "Phcscriptcdn::Script::Extension"
		resources :versions, class_name: "Phcscriptcdn::Script::Version"
		resources :licences, class_name: "Phcscriptcdn::Script::Licence"
	end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
phcscriptcdn-55.0.3 config/routes.rb
phcscriptcdn-55.0.2 config/routes.rb
phcscriptcdn-55.0.1 config/routes.rb
phcscriptcdn-55.0.0 config/routes.rb