Sha256: e22de7077c752245be6b92d95aa241b6fec11365d2116e518997a2553aab6572

Contents?: true

Size: 954 Bytes

Versions: 18

Compression:

Stored size: 954 Bytes

Contents

PhcdevworksPress::Engine.routes.draw do

    # Review Routes
    namespace :review, class_name: 'Review::Post' do
        resources :posts
    end

    # List Routes
    namespace :list do
        resources :posts, class_name: 'List::Post' do
            resources :items, class_name: 'List::Item'
        end
    end

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

    # Frontend Routes
    namespace :blog do
        resources :articles, only: [:index, :show]
        resources :lists, only: [:index, :show]
        resources :reviews, 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

18 entries across 18 versions & 1 rubygems

Version Path
phcdevworks_press-8.3.1 config/routes.rb
phcdevworks_press-8.2.2 config/routes.rb
phcdevworks_press-8.2.1 config/routes.rb
phcdevworks_press-8.2.0 config/routes.rb
phcdevworks_press-8.1.1 config/routes.rb
phcdevworks_press-8.1.0 config/routes.rb
phcdevworks_press-8.0.2 config/routes.rb
phcdevworks_press-8.0.1 config/routes.rb
phcdevworks_press-8.0.0 config/routes.rb
phcdevworks_press-7.5.0 config/routes.rb
phcdevworks_press-7.3.0 config/routes.rb
phcdevworks_press-7.2.0 config/routes.rb
phcdevworks_press-7.1.9 config/routes.rb
phcdevworks_press-7.1.8 config/routes.rb
phcdevworks_press-7.1.7 config/routes.rb
phcdevworks_press-7.1.6 config/routes.rb
phcdevworks_press-7.1.5 config/routes.rb
phcdevworks_press-7.1.4 config/routes.rb