Sha256: db2c3c7a651b3cd8596acc85fa514243fcd3b7a4ed93add6ff0d56d175524092

Contents?: true

Size: 578 Bytes

Versions: 46

Compression:

Stored size: 578 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 :article 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

46 entries across 46 versions & 1 rubygems

Version Path
phcpress-42.0.0 config/routes.rb
phcpress-41.0.0 config/routes.rb
phcpress-40.0.0 config/routes.rb
phcpress-39.0.0 config/routes.rb
phcpress-38.0.0 config/routes.rb
phcpress-37.0.0 config/routes.rb
phcpress-36.0.0 config/routes.rb
phcpress-35.0.0 config/routes.rb
phcpress-34.0.0 config/routes.rb
phcpress-33.0.0 config/routes.rb
phcpress-32.0.0 config/routes.rb
phcpress-31.2.0 config/routes.rb
phcpress-31.1.0 config/routes.rb
phcpress-31.0.0 config/routes.rb
phcpress-30.0.0 config/routes.rb
phcpress-29.0.0 config/routes.rb
phcpress-28.0.0 config/routes.rb
phcpress-27.0.0 config/routes.rb
phcpress-26.0.1 config/routes.rb
phcpress-26.0.0 config/routes.rb