Sha256: f42b3b62be0ef32b6aee76d0faf1b41bba6aae66f8c91e3cc960fe4f1979e9a4

Contents?: true

Size: 772 Bytes

Versions: 2

Compression:

Stored size: 772 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]

  root to: "dashboard#index"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
maquina-0.5.2 config/routes.rb
maquina-0.5.1 config/routes.rb