Sha256: 8148d67aa7f9d5c7789801b17a955d7c88bdb942f089f69c3bf477bb65ce2b8c

Contents?: true

Size: 532 Bytes

Versions: 2

Compression:

Stored size: 532 Bytes

Contents

PhcdevworksPress::Engine.routes.draw do

  # Article Routes
  namespace :article do
    resources :posts, class_name: 'Articles::Post'
  end

  # Frontend Routes
  namespace :blog do
    resources :articles, only: [:index, :show]
  end

  # API Routes
  namespace :api, :path => "", :constraints => {:subdomain => "api"} do
    namespace :v1 do
      resources :posts, defaults: {format: 'json'}
    end
  end

  # Mount Routes
  mount PhcdevworksAccounts::Engine, :at => '/'
  mount PhcdevworksCoreModules::Engine, :at => '/'

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
phcdevworks_press-6.0.0 config/routes.rb
phcdevworks_press-5.0.0 config/routes.rb