Sha256: b01f1a4c7e55dba7fcc01bee75e1458e3e213fa6d84e45e373b858095f32207f

Contents?: true

Size: 609 Bytes

Versions: 1

Compression:

Stored size: 609 Bytes

Contents

Phcscriptcdnpro::Engine.routes.draw do

	# CDN Frontend
	get 'frontend/cdnpages/list', :path => "script-cdn"

	# Script CDN Listing System
	namespace :scriptcdn do

		# Main Script Module
		resources :mains do
			resources :authors
			resources :urls
		end

		# Script Information
		resources :versions
		resources :informations

	end
	
	# Application API
	namespace :api, :path => "", :constraints => {:subdomain => "api"} do

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

	end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phcscriptcdnpro-1.10.1 config/routes.rb