Sha256: fc07439e3cf63eed7eb2e89d6b5849f2d546d8cedb8d7eec2ce3d567ce842b7c

Contents?: true

Size: 937 Bytes

Versions: 61

Compression:

Stored size: 937 Bytes

Contents

Phcscriptcdn::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: '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

  # 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

61 entries across 61 versions & 1 rubygems

Version Path
phcscriptcdn-48.0.0 config/routes.rb
phcscriptcdn-47.0.0 config/routes.rb
phcscriptcdn-44.1.0 config/routes.rb
phcscriptcdn-45.0.0 config/routes.rb
phcscriptcdn-44.0.0 config/routes.rb
phcscriptcdn-43.0.0 config/routes.rb
phcscriptcdn-42.0.0 config/routes.rb
phcscriptcdn-41.0.0 config/routes.rb
phcscriptcdn-40.0.0 config/routes.rb
phcscriptcdn-38.0.0 config/routes.rb
phcscriptcdn-37.0.0 config/routes.rb
phcscriptcdn-36.0.0 config/routes.rb
phcscriptcdn-35.0.0 config/routes.rb
phcscriptcdn-34.0.0 config/routes.rb
phcscriptcdn-33.0.0 config/routes.rb
phcscriptcdn-32.0.0 config/routes.rb
phcscriptcdn-31.0.0 config/routes.rb
phcscriptcdn-30.0.0 config/routes.rb
phcscriptcdn-29.2.0 config/routes.rb
phcscriptcdn-29.1.0 config/routes.rb