Sha256: 0a472a219d9c8aa7c0020e3c3de69b895d858ca9799b2092fd498105df541f08

Contents?: true

Size: 676 Bytes

Versions: 19

Compression:

Stored size: 676 Bytes

Contents

PhcdevworksTutorials::Engine.routes.draw do

  # Tutorial Routs
  namespace :tutorial do
    resources :posts, class_name: "Tutorial::Post" do
      resources :steps, class_name: "Tutorial::Step"
    end
    resources :categories, class_name: "Tutorial::Category"
  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

19 entries across 19 versions & 1 rubygems

Version Path
phcdevworks_tutorials-6.5.0 config/routes.rb
phcdevworks_tutorials-6.4.0 config/routes.rb
phcdevworks_tutorials-6.3.1 config/routes.rb
phcdevworks_tutorials-6.3.0 config/routes.rb
phcdevworks_tutorials-6.2.0 config/routes.rb
phcdevworks_tutorials-6.1.0 config/routes.rb
phcdevworks_tutorials-6.0.0 config/routes.rb
phcdevworks_tutorials-5.2.2 config/routes.rb
phcdevworks_tutorials-5.2.1 config/routes.rb
phcdevworks_tutorials-5.2.0 config/routes.rb
phcdevworks_tutorials-5.1.2 config/routes.rb
phcdevworks_tutorials-5.1.1 config/routes.rb
phcdevworks_tutorials-5.1.0 config/routes.rb
phcdevworks_tutorials-5.0.2 config/routes.rb
phcdevworks_tutorials-5.0.1 config/routes.rb
phcdevworks_tutorials-5.0.0 config/routes.rb
phcdevworks_tutorials-4.0.1 config/routes.rb
phcdevworks_tutorials-4.0.0 config/routes.rb
phcdevworks_tutorials-3.0.0 config/routes.rb