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-12.2.0 config/routes.rb
phcpress-12.1.1 config/routes.rb
phcpress-12.1.0 config/routes.rb
phcpress-12.0.0 config/routes.rb
phcpress-11.2.0 config/routes.rb
phcpress-11.0.0 config/routes.rb