Sha256: 8322b606dce6c3bb8811784298f5636732cb0aeaa1ae135f100f6dcb773ef1dc
Contents?: true
Size: 623 Bytes
Versions: 3
Compression:
Stored size: 623 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 get 'blog/index', to: 'website/pages#post_index' get 'blog/index/:id', to: 'website/pages#post_single' # Application API namespace :api do namespace :v1 do resources :posts, defaults: {format: 'json'} resources :categories, defaults: {format: 'json'} end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
phcpresspro-78.1.0 | config/routes.rb |
phcpresspro-78.0.0 | config/routes.rb |
phcpresspro-77.0.0 | config/routes.rb |