Sha256: ea632cece8a984896bba68314687ef3e7b03a1a4607df0570f643ba3c51f9849

Contents?: true

Size: 738 Bytes

Versions: 12

Compression:

Stored size: 738 Bytes

Contents

# frozen_string_literal: true

Rails.application.routes.draw do
  mount EffectiveClassifieds::Engine => '/', as: 'effective_classifieds'
end

EffectiveClassifieds::Engine.routes.draw do
  # Public routes
  scope module: 'effective' do
    resources :classifieds, only: [:index, :show, :edit, :update]
    resources :jobs, only: [:index, :show, :edit, :update], controller: 'classifieds'

    resources :classified_wizards, only: [:new, :show, :destroy] do
      resources :build, controller: :classified_wizards, only: [:show, :update]
    end

  end

  namespace :admin do
    resources :classifieds, except: [:show] do
      post :approve, on: :member
    end

    resources :jobs, except: [:show], controller: 'classifieds'
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
effective_classifieds-0.5.0 config/routes.rb
effective_classifieds-0.4.13 config/routes.rb
effective_classifieds-0.4.12 config/routes.rb
effective_classifieds-0.4.11 config/routes.rb
effective_classifieds-0.4.10 config/routes.rb
effective_classifieds-0.4.9 config/routes.rb
effective_classifieds-0.4.8 config/routes.rb
effective_classifieds-0.4.7 config/routes.rb
effective_classifieds-0.4.6 config/routes.rb
effective_classifieds-0.4.5 config/routes.rb
effective_classifieds-0.4.4 config/routes.rb
effective_classifieds-0.4.3 config/routes.rb