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

Version Path
phcpresspro-15.0.0 config/routes.rb
phcpresspro-14.1.0 config/routes.rb
phcpresspro-14.0.0 config/routes.rb
phcpresspro-13.1.0 config/routes.rb
phcpresspro-13.0.0 config/routes.rb
phcpresspro-12.3.0 config/routes.rb
phcpresspro-12.2.1 config/routes.rb
phcpresspro-12.2.0 config/routes.rb
phcpresspro-12.1.0 config/routes.rb
phcpresspro-12.0.2 config/routes.rb
phcpresspro-12.0.1 config/routes.rb
phcpresspro-12.0.0 config/routes.rb
phcpresspro-11.0.1 config/routes.rb
phcpresspro-11.0.0 config/routes.rb
phcpresspro-10.0.1 config/routes.rb