Sha256: 7c904d64a6f13234c733508f68ff42d1243be42a28973c37f84e1315b86b014c

Contents?: true

Size: 936 Bytes

Versions: 8

Compression:

Stored size: 936 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

8 entries across 8 versions & 1 rubygems

Version Path
phcscriptcdn-5.1.2 config/routes.rb
phcscriptcdn-5.1.1 config/routes.rb
phcscriptcdn-5.1.0 config/routes.rb
phcscriptcdn-5.0.1 config/routes.rb
phcscriptcdn-5.0.0 config/routes.rb
phcscriptcdn-4.3.10 config/routes.rb
phcscriptcdn-4.3.9 config/routes.rb
phcscriptcdn-4.3.8 config/routes.rb