Sha256: da2796f0a06e67c389a0cf8aaa005dac071060b03689edc1d6f878d24c73893c

Contents?: true

Size: 919 Bytes

Versions: 32

Compression:

Stored size: 919 Bytes

Contents

Phcscriptcdnpro::Engine.routes.draw do

	namespace :frontend do
		# Frontend Routes
		resources :cdnpages
	end

	# Script CDN Listing System
	namespace :script do
		# Main Script Module
		resources :listings, class_name: 'Phcscriptcdnpro::Script::Listing' do
			resources :urls, class_name: 'Phcscriptcdnpro::Script::Url'
			resources :authors, class_name: 'Phcscriptcdnpro::Script::Author'
		end
		resources :extensions, class_name: 'Phcscriptcdnpro::Script::Extension'
		resources :versions, class_name: 'Phcscriptcdnpro::Script::Version'
		resources :licences, class_name: 'Phcscriptcdnpro::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

32 entries across 32 versions & 1 rubygems

Version Path
phcscriptcdnpro-4.4.1 config/routes.rb
phcscriptcdnpro-4.4.0 config/routes.rb
phcscriptcdnpro-4.3.0 config/routes.rb
phcscriptcdnpro-4.2.1 config/routes.rb
phcscriptcdnpro-4.2.0 config/routes.rb
phcscriptcdnpro-4.1.3 config/routes.rb
phcscriptcdnpro-4.1.2 config/routes.rb
phcscriptcdnpro-4.1.1 config/routes.rb
phcscriptcdnpro-4.1.0 config/routes.rb
phcscriptcdnpro-4.0.0 config/routes.rb
phcscriptcdnpro-3.6.0 config/routes.rb
phcscriptcdnpro-3.5.8 config/routes.rb
phcscriptcdnpro-3.5.7 config/routes.rb
phcscriptcdnpro-3.5.4 config/routes.rb
phcscriptcdnpro-3.5.3 config/routes.rb
phcscriptcdnpro-3.5.1 config/routes.rb
phcscriptcdnpro-3.5.0 config/routes.rb
phcscriptcdnpro-3.4.2 config/routes.rb
phcscriptcdnpro-3.4.1 config/routes.rb
phcscriptcdnpro-3.4.0 config/routes.rb