Sha256: 5496f2ec8096570d6438b82b651a3f25a76904582616b15021a202b49b026210

Contents?: true

Size: 975 Bytes

Versions: 3

Compression:

Stored size: 975 Bytes

Contents

Phcscriptcdn::Engine.routes.draw do

    # Mount Accounts Engine
    mount Phcaccounts::Engine, :at => '/'

    # Application Scripts
    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
            resources :mains, defaults: {format: 'json'}
            resources :informations, defaults: {format: 'json'}
            resources :versions, defaults: {format: 'json'}
        end
    end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
phcscriptcdn-51.0.0 config/routes.rb
phcscriptcdn-50.0.0 config/routes.rb
phcscriptcdn-49.0.0 config/routes.rb