Sha256: 5c4a64224857c034b74f0e526c2d293bf92adf1289ec75fb451b889802dab614
Contents?: true
Size: 1.21 KB
Versions: 3
Compression:
Stored size: 1.21 KB
Contents
PhcdevworksScripts::Engine.routes.draw do # 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 => '/' mount PhcdevworksAccountsStripe::Engine, :at => '/' mount PhcdevworksCoreModules::Engine, :at => '/' end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
phcdevworks_scripts-8.1.0 | config/routes.rb |
phcdevworks_scripts-8.0.5 | config/routes.rb |
phcdevworks_scripts-8.0.4 | config/routes.rb |