Sha256: 961b389528c08af2c4afcce94323a1d3700678d93267375ec628c5afdf833f22

Contents?: true

Size: 613 Bytes

Versions: 8

Compression:

Stored size: 613 Bytes

Contents

Phcpresspro::Engine.routes.draw do

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

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

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

  # PHCAccounts Routes
  mount Phcaccountspro::Engine, :at => '/'

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
phcpresspro-86.4.0 config/routes.rb
phcpresspro-86.3.0 config/routes.rb
phcpresspro-86.2.0 config/routes.rb
phcpresspro-86.1.0 config/routes.rb
phcpresspro-86.0.0 config/routes.rb
phcpresspro-85.0.0 config/routes.rb
phcpresspro-84.0.0 config/routes.rb
phcpresspro-83.0.0 config/routes.rb