Sha256: 1dd636d2ff9fce27a1aa4724dc834e6fb73cfa4af8fe47110d52f508173973a1
Contents?: true
Size: 957 Bytes
Versions: 9
Compression:
Stored size: 957 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
9 entries across 9 versions & 1 rubygems