Sha256: 4eaa959060c9573ce92f5a4ea468e668db6e7829d741186cb39ec728f9e03fdd

Contents?: true

Size: 837 Bytes

Versions: 4

Compression:

Stored size: 837 Bytes

Contents

Jobshop::Engine.routes.draw do
  default_url_options(Jobshop.configuration.default_url_options)

  devise_for(:users, class_name: "Jobshop::User", module: "devise", skip: [ :sessions ])

  devise_scope :user do
    get "teams/:team_id/sign_in" => "sessions#new", as: :new_user_session
    post "teams/:team_id/sign_in" => "sessions#create", as: :user_session
    delete "/sign_out" => "sessions#destroy", as: :destroy_user_session
  end

  resources :teams, only: [ ] do
    collection do
      resource :lookup, only: [ :show, :create ], module: "teams",
        as: "teams_lookup"
    end

    resource :registration, only: [ :new, :create ],
      controller: "teams/registrations"
  end

  get "/setup" => "setups#show", as: :team_setup

  get "/about" => redirect("https://jobshop.io"), as: :about

  root to: "dashboards#show"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jobshop-0.0.101 config/routes.rb
jobshop-0.0.67 config/routes.rb
jobshop-0.0.61 config/routes.rb
jobshop-0.0.59 config/routes.rb