Sha256: 596e50b6603aaf39d28cdf021f19a414c08e218ada15b88b3fe48f92e8006316
Contents?: true
Size: 658 Bytes
Versions: 1
Compression:
Stored size: 658 Bytes
Contents
PhcdevworksTutorials::Engine.routes.draw do # Tutorial Routs namespace :tutorial do resources :posts, class_name: 'PhcdevworksTutorials::Tutorial::Post' 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phcdevworks_tutorials-0.2.0 | config/routes.rb |