Sha256: a92b5da356f62f5e8ac9e13a50bde4fb584c77adfceb7e0cb2b51ce5e9b994d5

Contents?: true

Size: 586 Bytes

Versions: 12

Compression:

Stored size: 586 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

12 entries across 12 versions & 1 rubygems

Version Path
phcpress-6.7.2 config/routes.rb
phcpress-6.7.1 config/routes.rb
phcpress-6.7.0 config/routes.rb
phcpress-6.6.6 config/routes.rb
phcpress-6.6.5 config/routes.rb
phcpress-6.6.4 config/routes.rb
phcpress-6.6.3 config/routes.rb
phcpress-6.6.1 config/routes.rb
phcpress-6.6.0 config/routes.rb
phcpress-6.5.1 config/routes.rb
phcpress-6.5.0 config/routes.rb
phcpress-6.4.5 config/routes.rb