Sha256: 23dbc7cb981dd7b6b83f2cfc7786aef85fffd101eb20b96b5d81834186a49c90

Contents?: true

Size: 830 Bytes

Versions: 2

Compression:

Stored size: 830 Bytes

Contents

# frozen_string_literal: true

Maquina::Engine.routes.draw do
  resource :unauthorized, controller: :unauthorized, only: [:show]

  resource :first_run, only: [:show, :create]
  resource :sessions, path: I18n.t("routes.sessions"), only: [:new, :create, :destroy]
  resource :multifactor, only: [:new, :create]

  get I18n.t("routes.accept_invitation"), to: "accept_invitations#new", as: :new_accept_invitations
  patch I18n.t("routes.accept_invitation"), to: "accept_invitations#update", as: :accept_invitations

  resources :plans, path: I18n.t("routes.plans"), except: [:show, :destroy]
  resources :users, path: I18n.t("routes.users"), only: [:index]
  resources :invitations, path: I18n.t("routes.invitations"), only: [:new, :create]

  get "/dashboard", to: "dashboard#index", as: :dashboard
  root to: "dashboard#index"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
maquina-0.7.2 config/routes.rb
maquina-0.7.1 config/routes.rb