discourse/app/controllers/pageview_controller.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
400 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
class PageviewController < ApplicationController
skip_before_action :check_xhr,
:redirect_to_login_if_required,
:redirect_to_profile_if_required,
:preload_json,
:verify_authenticity_token
def index
# pageview tracking is handled by middleware
render plain: "ok"
end
end