Sha256: 59bf63d39e9c0abc2d765d4c2536e6ed447943a4e6e373845a63167080455e57
Contents?: true
Size: 967 Bytes
Versions: 2
Compression:
Stored size: 967 Bytes
Contents
PhcdevworksTutorials::Engine.routes.draw do namespace :tutorial do resources :steps end namespace :tutorial do resources :posts end namespace :tutorial do resources :categories end # Tutorial Routs namespace :tutorial do resources :posts, class_name: "PhcdevworksTutorials::Tutorial::Post" do resources :steps, class_name: "PhcdevworksTutorials::Tutorial::Step" end resources :categories, class_name: "PhcdevworksTutorials::Tutorial::Category" end # Frontend Routes namespace :blog do resources :tutorials, only: [:index, :show] end # API Routes namespace :api, :path => "", :constraints => {:subdomain => "tutorial_api"} do namespace :v1 do resources :posts, defaults: {format: "json"} resources :categories, defaults: {format: "json"} end end # Mount Routes mount PhcdevworksAccounts::Engine, :at => "/" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phcdevworks_tutorials-2.1.1 | config/routes.rb |
phcdevworks_tutorials-2.1.0 | config/routes.rb |