DEV: Fix indentation for routes.rb

DEV: Fix indentation for routes.rb

diff --git a/config/routes.rb b/config/routes.rb
index 1f843dc..e04bc60 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -11,960 +11,960 @@ Discourse::Application.routes.draw do
   scope path: nil, constraints: { format: /(json|html|\*\/\*)/ } do
     relative_url_root = (defined?(Rails.configuration.relative_url_root) && Rails.configuration.relative_url_root) ? Rails.configuration.relative_url_root + '/' : '/'
 
-  match "/404", to: "exceptions#not_found", via: [:get, :post]
-  get "/404-body" => "exceptions#not_found_body"
-
-  get "/bootstrap" => "bootstrap#index"
-
-  post "webhooks/aws" => "webhooks#aws"
-  post "webhooks/mailgun"  => "webhooks#mailgun"
-  post "webhooks/mailjet"  => "webhooks#mailjet"
-  post "webhooks/mandrill" => "webhooks#mandrill"
-  post "webhooks/postmark" => "webhooks#postmark"
-  post "webhooks/sendgrid" => "webhooks#sendgrid"
-  post "webhooks/sparkpost" => "webhooks#sparkpost"
-
-  scope path: nil, constraints: { format: /.*/ } do
-    Sidekiq::Web.set :sessions, Rails.application.config.session_options
-    if Rails.env.development?
-      mount Sidekiq::Web => "/sidekiq"
-      mount Logster::Web => "/logs"
-    else
-      # only allow sidekiq in master site
-      mount Sidekiq::Web => "/sidekiq", constraints: AdminConstraint.new(require_master: true)
-      mount Logster::Web => "/logs", constraints: AdminConstraint.new
+    match "/404", to: "exceptions#not_found", via: [:get, :post]
+    get "/404-body" => "exceptions#not_found_body"
+
+    get "/bootstrap" => "bootstrap#index"
+
+    post "webhooks/aws" => "webhooks#aws"
+    post "webhooks/mailgun"  => "webhooks#mailgun"
+    post "webhooks/mailjet"  => "webhooks#mailjet"
+    post "webhooks/mandrill" => "webhooks#mandrill"
+    post "webhooks/postmark" => "webhooks#postmark"
+    post "webhooks/sendgrid" => "webhooks#sendgrid"
+    post "webhooks/sparkpost" => "webhooks#sparkpost"
+
+    scope path: nil, constraints: { format: /.*/ } do
+      Sidekiq::Web.set :sessions, Rails.application.config.session_options
+      if Rails.env.development?
+        mount Sidekiq::Web => "/sidekiq"
+        mount Logster::Web => "/logs"
+      else
+        # only allow sidekiq in master site
+        mount Sidekiq::Web => "/sidekiq", constraints: AdminConstraint.new(require_master: true)
+        mount Logster::Web => "/logs", constraints: AdminConstraint.new
+      end
     end
-  end
 
-  resources :about do
-    collection do
-      get "live_post_counts"
+    resources :about do
+      collection do
+        get "live_post_counts"
+      end
     end
-  end
 
-  get "finish-installation" => "finish_installation#index"
-  get "finish-installation/register" => "finish_installation#register"
-  post "finish-installation/register" => "finish_installation#register"
-  get "finish-installation/confirm-email" => "finish_installation#confirm_email"
-  put "finish-installation/resend-email" => "finish_installation#resend_email"
-
-  get "pub/check-slug" => "published_pages#check_slug"
-  get "pub/by-topic/:topic_id" => "published_pages#details"
-  put "pub/by-topic/:topic_id" => "published_pages#upsert"
-  delete "pub/by-topic/:topic_id" => "published_pages#destroy"
-  get "pub/:slug" => "published_pages#show"
-
-  resources :directory_items
-
-  get "site" => "site#site"
-  namespace :site do
-    get "settings"
-    get "custom_html"
-    get "banner"
-    get "emoji"
-  end
+    get "finish-installation" => "finish_installation#index"
+    get "finish-installation/register" => "finish_installation#register"
+    post "finish-installation/register" => "finish_installation#register"
+    get "finish-installation/confirm-email" => "finish_installation#confirm_email"
+    put "finish-installation/resend-email" => "finish_installation#resend_email"
+
+    get "pub/check-slug" => "published_pages#check_slug"
+    get "pub/by-topic/:topic_id" => "published_pages#details"
+    put "pub/by-topic/:topic_id" => "published_pages#upsert"
+    delete "pub/by-topic/:topic_id" => "published_pages#destroy"
+    get "pub/:slug" => "published_pages#show"
+
+    resources :directory_items
+
+    get "site" => "site#site"
+    namespace :site do
+      get "settings"
+      get "custom_html"
+      get "banner"
+      get "emoji"
+    end
 
-  get "site/basic-info" => 'site#basic_info'
-  get "site/statistics" => 'site#statistics'
-  get "site/selectable-avatars" => "site#selectable_avatars"
+    get "site/basic-info" => 'site#basic_info'
+    get "site/statistics" => 'site#statistics'
+    get "site/selectable-avatars" => "site#selectable_avatars"
 
-  get "srv/status" => "forums#status"
+    get "srv/status" => "forums#status"
 
-  get "wizard" => "wizard#index"
-  get 'wizard/steps' => 'steps#index'
-  get 'wizard/steps/:id' => "wizard#index"
-  put 'wizard/steps/:id' => "steps#update"
+    get "wizard" => "wizard#index"
+    get 'wizard/steps' => 'steps#index'
+    get 'wizard/steps/:id' => "wizard#index"
+    put 'wizard/steps/:id' => "steps#update"
 
-  namespace :admin, constraints: StaffConstraint.new do
-    get "" => "admin#index"
+    namespace :admin, constraints: StaffConstraint.new do
+      get "" => "admin#index"
 
-    get 'plugins' => 'plugins#index'
+      get 'plugins' => 'plugins#index'
 
-    resources :site_settings, constraints: AdminConstraint.new do
-      collection do
-        get "category/:id" => "site_settings#index"
-      end
+      resources :site_settings, constraints: AdminConstraint.new do
+        collection do
+          get "category/:id" => "site_settings#index"
+        end
 
-      put "user_count" => "site_settings#user_count"
-    end
+        put "user_count" => "site_settings#user_count"
+      end
 
-    get "reports" => "reports#index"
-    get "reports/bulk" => "reports#bulk"
-    get "reports/:type" => "reports#show"
+      get "reports" => "reports#index"
+      get "reports/bulk" => "reports#bulk"
+      get "reports/:type" => "reports#show"
 
-    resources :groups, constraints: AdminConstraint.new do
-      collection do
-        get 'bulk'
-        get 'bulk-complete' => 'groups#bulk'
-        put 'bulk' => 'groups#bulk_perform'
-        put "automatic_membership_count" => "groups#automatic_membership_count"
-      end
-      member do
-        put "owners" => "groups#add_owners"
-        delete "owners" => "groups#remove_owner"
+      resources :groups, constraints: AdminConstraint.new do
+        collection do
+          get 'bulk'
+          get 'bulk-complete' => 'groups#bulk'
+          put 'bulk' => 'groups#bulk_perform'
+          put "automatic_membership_count" => "groups#automatic_membership_count"
+        end
+        member do
+          put "owners" => "groups#add_owners"
+          delete "owners" => "groups#remove_owner"
+        end
       end
-    end
 
-    get "groups/:type" => "groups#show", constraints: AdminConstraint.new
-    get "groups/:type/:id" => "groups#show", constraints: AdminConstraint.new
+      get "groups/:type" => "groups#show", constraints: AdminConstraint.new
+      get "groups/:type/:id" => "groups#show", constraints: AdminConstraint.new
 
-    resources :users, id: RouteFormat.username, except: [:show] do
-      collection do
-        get "list" => "users#index"
-        get "list/:query" => "users#index"
-        get "ip-info" => "users#ip_info"
-        delete "delete-others-with-same-ip" => "users#delete_other_accounts_with_same_ip"
-        get "total-others-with-same-ip" => "users#total_other_accounts_with_same_ip"
-        put "approve-bulk" => "users#approve_bulk"
+      resources :users, id: RouteFormat.username, except: [:show] do
+        collection do
+          get "list" => "users#index"
+          get "list/:query" => "users#index"
+          get "ip-info" => "users#ip_info"
+          delete "delete-others-with-same-ip" => "users#delete_other_accounts_with_same_ip"
+          get "total-others-with-same-ip" => "users#total_other_accounts_with_same_ip"

[... diff too long, it was truncated ...]

GitHub sha: 98590081

1 Like