Sha256: 2d92db2f41729590ad411a94f41c3c1423d2e940e21fd8363076ef443522b22d

Contents?: true

Size: 585 Bytes

Versions: 5

Compression:

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

5 entries across 5 versions & 1 rubygems

Version Path
phcpress-7.1.2 config/routes.rb
phcpress-7.1.1 config/routes.rb
phcpress-7.1.0 config/routes.rb
phcpress-7.0.0 config/routes.rb
phcpress-6.7.3 config/routes.rb