Sha256: c5c2fca1e501536eca63418bb118e8ded1170d6457a4da54b2edbe5236aa0cc8
Contents?: true
Size: 591 Bytes
Versions: 15
Compression:
Stored size: 591 Bytes
Contents
Phcpresspro::Engine.routes.draw do # Frontend namespace :frontend do resources :articles end # API namespace :api do namespace :v1 do resources :posts, defaults: {format: 'json'} resources :categories, defaults: {format: 'json'} end end # Article Routes namespace :articles do resources :posts, class_name: 'Phcpresspro::Articles::Post' end # Module Routes namespace :modules do resources :connections, class_name: 'Phcpresspro::Modules::Connection' resources :categories, class_name: 'Phcpresspro::Modules::Category' end end
Version data entries
15 entries across 15 versions & 1 rubygems