Sha256: b7afac3d622921a6c52487af0b7f5ee8192030d303dfae3a8a17cbad0ba22993
Contents?: true
Size: 606 Bytes
Versions: 1
Compression:
Stored size: 606 Bytes
Contents
Phcpress::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: 'Phcpress::Articles::Post' end # Module Routes namespace :modules do resources :connections, class_name: 'Phcpress::Modules::Connection' resources :categories, class_name: 'Phcpress::Modules::Category' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phcpress-9.0.1 | config/routes.rb |