Sha256: d041d583eabb000724410d6e58f68c38d1cc509b455e55eb2a67639198feb063

Contents?: true

Size: 914 Bytes

Versions: 20

Compression:

Stored size: 914 Bytes

Contents

Phcscriptcdn::Engine.routes.draw do

	# CDN Frontend
	namespace :frontend do
		# Frontend Routes
		resources :cdnpages
	end

	# Script CDN Listing System
	namespace :script do
		# Main Script Module
		resources :listings, class_name: 'Phcscriptcdn::Script::Listing' do
			resources :urls, class_name: 'Phcscriptcdn::Script::Url'
			resources :authors, class_name: 'Phcscriptcdn::Script::Author'
		end
		resources :extensions, class_name: 'Phcscriptcdn::Script::Extension'
		resources :versions, class_name: 'Phcscriptcdn::Script::Version'
		resources :licences, class_name: 'Phcscriptcdn::Script::Licence'
	end
	
	# Application API
	namespace :api, :path => "", :constraints => {:subdomain => "api"} do
		namespace :v1 do

			# Routes for API
			resources :mains, defaults: {format: 'json'}
			resources :informations, defaults: {format: 'json'}
			resources :versions, defaults: {format: 'json'}

		end
	end

end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
phcscriptcdn-4.0.0 config/routes.rb
phcscriptcdn-3.3.3 config/routes.rb
phcscriptcdn-3.3.2 config/routes.rb
phcscriptcdn-3.3.1 config/routes.rb
phcscriptcdn-3.3.0 config/routes.rb
phcscriptcdn-3.2.0 config/routes.rb
phcscriptcdn-3.1.5 config/routes.rb
phcscriptcdn-3.1.4 config/routes.rb
phcscriptcdn-3.1.3 config/routes.rb
phcscriptcdn-3.1.2 config/routes.rb
phcscriptcdn-3.1.1 config/routes.rb
phcscriptcdn-3.1.0 config/routes.rb
phcscriptcdn-3.0.7 config/routes.rb
phcscriptcdn-3.0.6 config/routes.rb
phcscriptcdn-3.0.5 config/routes.rb
phcscriptcdn-3.0.4 config/routes.rb
phcscriptcdn-3.0.2 config/routes.rb
phcscriptcdn-3.0.1 config/routes.rb
phcscriptcdn-3.0.0 config/routes.rb
phcscriptcdn-3.0.0.pre.beta config/routes.rb