mirror of
https://github.com/discourse/discourse.git
synced 2025-06-23 01:32:49 +08:00
DEV: Show login-required splash in root route (take 2) (#32629)
This commit is contained in:
13
app/controllers/home_page_controller.rb
Normal file
13
app/controllers/home_page_controller.rb
Normal file
@ -0,0 +1,13 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class HomePageController < ApplicationController
|
||||
skip_before_action :check_xhr, only: %i[custom blank]
|
||||
|
||||
def custom
|
||||
respond_to { |format| format.html { render :custom } }
|
||||
end
|
||||
|
||||
def blank
|
||||
respond_to { |format| format.html { render "default/blank" } }
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user