Sha256: 8744080474de040d6cea8f7a2707168ab73a8135dba6f0124c2d257ae98153df

Contents?: true

Size: 924 Bytes

Versions: 1

Compression:

Stored size: 924 Bytes

Contents

PhcdevworksTutorials::Engine.routes.draw do

    # Tutorial Routes
    namespace :tutorial do
        resources :posts, class_name: "Tutorial::Post" do
            resources :steps, class_name: "Tutorial::Step"
        end
        resources :categories, class_name: "Tutorial::Category"
    end

    # Command Routes
    namespace :command do
        resources :posts, class_name: "Command::Post" do
            resources :items, class_name: "Command::Item"
        end
    end

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

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

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

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phcdevworks_tutorials-6.6.0 config/routes.rb