2019-05-02 02:57:12 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
class Admin::AdminController < ApplicationController
|
2018-01-31 23:17:59 -05:00
|
|
|
requires_login
|
2022-10-31 08:02:26 -04:00
|
|
|
before_action :ensure_admin
|
2013-02-05 14:16:51 -05:00
|
|
|
|
|
|
|
def index
|
2017-08-31 00:06:56 -04:00
|
|
|
render body: nil
|
2013-02-05 14:16:51 -05:00
|
|
|
end
|
2023-12-20 20:37:20 -05: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
|