Sha256: b61a5d578507cc03da98a26c55395e20d27c2c980b4454efc07cc163bc0abe7d
Contents?: true
Size: 586 Bytes
Versions: 8
Compression:
Stored size: 586 Bytes
Contents
Phcpresspro::Engine.routes.draw do # Mount Accounts Engine mount Phcaccountspro::Engine, :at => '/' # Application Articles namespace :article do resources :categories, class_name: 'Phcpresspro::Articles::Category' resources :posts, class_name: 'Phcpresspro::Articles::Post' end # Application FrontEnd namespace :blog do resources :articles, only: [:index, :show] end # Application API namespace :api do namespace :v1 do resources :posts, defaults: {format: 'json'} resources :categories, defaults: {format: 'json'} end end end
Version data entries
8 entries across 8 versions & 1 rubygems