20 lines
366 B
Ruby
20 lines
366 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Admin::AdminController < ApplicationController
|
|
requires_login
|
|
before_action :ensure_admin
|
|
|
|
def index
|
|
render body: nil
|
|
end
|
|
|
|
private
|
|
|
|
def preload_additional_json
|
|
store_preloaded(
|
|
"enabledPluginAdminRoutes",
|
|
MultiJson.dump(Discourse.plugins_sorted_by_name.filter_map(&:admin_route)),
|
|
)
|
|
end
|
|
end
|