Sha256: 4962dd760365489b0d1331c97fc40cd42a5b82d5590ea4827a630fb3a8f704b8

Contents?: true

Size: 579 Bytes

Versions: 7

Compression:

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

7 entries across 7 versions & 1 rubygems

Version Path
phcpress-10.0.0 config/routes.rb
phcpress-9.1.2 config/routes.rb
phcpress-9.1.1 config/routes.rb
phcpress-9.1.0 config/routes.rb
phcpress-9.0.0 config/routes.rb
phcpress-8.0.0 config/routes.rb
phcpress-8.0.0b config/routes.rb