mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 01:43:43 +08:00
14 lines
345 B
Ruby
14 lines
345 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class PageviewController < ApplicationController
|
||
|
skip_before_action :check_xhr,
|
||
|
:redirect_to_login_if_required,
|
||
|
:preload_json,
|
||
|
:verify_authenticity_token
|
||
|
|
||
|
def index
|
||
|
# pageview tracking is handled by middleware
|
||
|
render plain: "ok"
|
||
|
end
|
||
|
end
|