Sha256: 9e8a65ef5a951f01650ef553dfe915771e31b8528e9356d7812b5ade21f49470

Contents?: true

Size: 958 Bytes

Versions: 23

Compression:

Stored size: 958 Bytes

Contents

Phcscriptcdnpro::Engine.routes.draw do

  # Frontend Routes
  namespace :frontend do
    resources :listings
  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'
    end
    resources :authors, class_name: 'Phcscriptcdnpro::Script::Author'
    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

23 entries across 23 versions & 1 rubygems

Version Path
phcscriptcdnpro-11.0.1 config/routes.rb
phcscriptcdnpro-11.0.0 config/routes.rb
phcscriptcdnpro-10.0.1 config/routes.rb
phcscriptcdnpro-10.0.0 config/routes.rb
phcscriptcdnpro-9.0.1 config/routes.rb
phcscriptcdnpro-9.0.0 config/routes.rb
phcscriptcdnpro-8.1.1 config/routes.rb
phcscriptcdnpro-8.1.0 config/routes.rb
phcscriptcdnpro-8.0.4 config/routes.rb
phcscriptcdnpro-8.0.3 config/routes.rb
phcscriptcdnpro-6.0.2 config/routes.rb
phcscriptcdnpro-6.0.1 config/routes.rb
phcscriptcdnpro-6.0.0 config/routes.rb
phcscriptcdnpro-5.10.3 config/routes.rb
phcscriptcdnpro-5.10.1 config/routes.rb
phcscriptcdnpro-5.10.0 config/routes.rb
phcscriptcdnpro-5.9.5 config/routes.rb
phcscriptcdnpro-5.9.1 config/routes.rb
phcscriptcdnpro-5.9.0 config/routes.rb
phcscriptcdnpro-5.8.9 config/routes.rb