Sha256: 9260f94bb62f497719096b6360c3cbd1582d3c880a80ec47787ca3985c70c92d
Contents?: true
Size: 1.46 KB
Versions: 4
Compression:
Stored size: 1.46 KB
Contents
PhcdevworksScripts::Engine.routes.draw do namespace :snippet do resources :urls end namespace :snippet do resources :posts end namespace :script do resources :versions end namespace :script do resources :urls end namespace :script do resources :listings end namespace :script do resources :extensions end namespace :script do resources :authors end # API Routes 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 # Script CDN Routes namespace :script do resources :listings, class_name: 'PhcdevworksScripts::Script::Listing' do resources :urls, class_name: 'PhcdevworksScripts::Script::Url' end resources :authors, class_name: 'PhcdevworksScripts::Script::Author' resources :extensions, class_name: 'PhcdevworksScripts::Script::Extension' resources :versions, class_name: 'PhcdevworksScripts::Script::Version' end # Script Snippet Routes namespace :snippet do resources :posts, class_name: 'PhcdevworksScripts::Snippet::Post' do resources :urls, class_name: 'PhcdevworksScripts::Snippet::Url' end end # Mount Routes mount PhcdevworksAccounts::Engine, :at => '/' end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
phcdevworks_scripts-3.0.1 | config/routes.rb |
phcdevworks_scripts-3.0.0 | config/routes.rb |
phcdevworks_scripts-2.3.1 | config/routes.rb |
phcdevworks_scripts-2.3.0 | config/routes.rb |