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-25.1.0 config/routes.rb
phcpress-25.0.0 config/routes.rb
phcpress-24.0.0 config/routes.rb
phcpress-23.2.0 config/routes.rb
phcpress-23.1.0 config/routes.rb
phcpress-23.0.0 config/routes.rb
phcpress-22.0.1 config/routes.rb
phcpress-22.0.0 config/routes.rb
phcpress-21.0.0 config/routes.rb
phcpress-20.0.0 config/routes.rb
phcpress-19.0.1 config/routes.rb
phcpress-19.0.0 config/routes.rb
phcpress-18.0.0 config/routes.rb
phcpress-17.0.0 config/routes.rb
phcpress-16.0.0 config/routes.rb
phcpress-15.0.0 config/routes.rb
phcpress-14.1.0 config/routes.rb
phcpress-13.0.1 config/routes.rb
phcpress-13.0.0 config/routes.rb
phcpress-12.3.0 config/routes.rb