|
1 | 1 | # frozen_string_literal: true |
2 | 2 |
|
3 | 3 | BetterTogether::Engine.routes.draw do # rubocop:todo Metrics/BlockLength |
4 | | - scope "(:locale)", locale: /en|fr|es/ do |
| 4 | + scope '(:locale)', locale: /en|fr|es/ do # rubocop:todo Metrics/BlockLength |
5 | 5 | # bt base path |
6 | 6 | scope path: 'bt' do # rubocop:todo Metrics/BlockLength |
7 | 7 | devise_for :users, |
8 | | - class_name: BetterTogether.user_class.to_s, |
9 | | - module: 'devise', |
10 | | - skip: %i[unlocks omniauth_callbacks], |
11 | | - path: 'users', |
12 | | - path_names: { |
13 | | - sign_in: 'sign-in', |
14 | | - sign_out: 'sign-out', |
15 | | - sign_up: 'sign-up' |
16 | | - }, |
17 | | - defaults: { format: :html } |
| 8 | + class_name: BetterTogether.user_class.to_s, |
| 9 | + module: 'devise', |
| 10 | + skip: %i[unlocks omniauth_callbacks], |
| 11 | + path: 'users', |
| 12 | + path_names: { |
| 13 | + sign_in: 'sign-in', |
| 14 | + sign_out: 'sign-out', |
| 15 | + sign_up: 'sign-up' |
| 16 | + }, |
| 17 | + defaults: { format: :html } |
18 | 18 |
|
19 | 19 | scope path: 'host' do |
20 | 20 | # Add route for the host dashboard |
|
62 | 62 | scope path: :setup_wizard do |
63 | 63 | get '/', to: 'setup_wizard#show', defaults: { wizard_id: 'host_setup' }, as: :setup_wizard |
64 | 64 | get '/platform_details', to: 'setup_wizard_steps#platform_details', |
65 | | - defaults: { wizard_id: 'host_setup', wizard_step_definition_id: :platform_details }, |
66 | | - as: :setup_wizard_step_platform_details |
| 65 | + defaults: { wizard_id: 'host_setup', wizard_step_definition_id: :platform_details }, |
| 66 | + as: :setup_wizard_step_platform_details |
67 | 67 | post 'create_host_platform', to: 'setup_wizard_steps#create_host_platform', |
68 | | - defaults: { |
69 | | - wizard_id: 'host_setup', |
70 | | - wizard_step_definition_id: :platform_details |
71 | | - }, |
72 | | - as: :setup_wizard_step_create_host_platform |
| 68 | + defaults: { |
| 69 | + wizard_id: 'host_setup', |
| 70 | + wizard_step_definition_id: :platform_details |
| 71 | + }, |
| 72 | + as: :setup_wizard_step_create_host_platform |
73 | 73 | get 'admin_creation', to: 'setup_wizard_steps#admin_creation', |
74 | 74 | defaults: { wizard_id: 'host_setup', wizard_step_definition_id: :admin_creation }, |
75 | 75 | as: :setup_wizard_step_admin_creation |
76 | 76 | post 'create_admin', to: 'setup_wizard_steps#create_admin', |
77 | | - defaults: { wizard_id: 'host_setup', wizard_step_definition_id: :admin_creation }, |
78 | | - as: :setup_wizard_step_create_admin |
| 77 | + defaults: { wizard_id: 'host_setup', wizard_step_definition_id: :admin_creation }, |
| 78 | + as: :setup_wizard_step_create_admin |
79 | 79 | end |
80 | 80 | end |
81 | 81 | end |
|
91 | 91 | } |
92 | 92 |
|
93 | 93 | get '/bt' => 'static_pages#community_engine' |
94 | | - |
95 | 94 | end |
96 | 95 | # TODO: Re-enable the API routes when the API is in full use and actively being maintained to prevent security issues. |
97 | 96 | # namespace :bt do |
|
0 commit comments