2019-05-02 16:57:12 +10:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
class Admin::AdminController < ApplicationController
|
2018-02-01 15:17:59 +11:00
|
|
|
requires_login
|
2022-10-31 12:02:26 +00:00
|
|
|
before_action :ensure_admin
|
2013-02-05 14:16:51 -05:00
|
|
|
|
|
|
|
def index
|
2017-08-31 12:06:56 +08:00
|
|
|
render body: nil
|
2013-02-05 14:16:51 -05:00
|
|
|
end
|
2023-12-21 11:37:20 +10:00
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def preload_additional_json
|
|
|
|
store_preloaded(
|
|
|
|
"enabledPluginAdminRoutes",
|
|
|
|
MultiJson.dump(Discourse.plugins_sorted_by_name.filter_map(&:admin_route)),
|
|
|
|
)
|
|
|
|
end
|
2013-02-05 14:16:51 -05:00
|
|
|
end
|