Sha256: 341ae5c0cbf32109a7248e2746fbae61f68b1ab87342f2a082ba14093cf0f146
Contents?: true
Size: 1.06 KB
Versions: 3
Compression:
Stored size: 1.06 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 end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
phcdevworks_scripts-9.0.2 | config/routes.rb |
phcdevworks_scripts-9.0.1 | config/routes.rb |
phcdevworks_scripts-9.0.0 | config/routes.rb |