discourse/app/controllers/admin/admin_controller.rb

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

20 lines
366 B
Ruby
Raw Normal View History

2019-05-02 02:57:12 -04:00
# frozen_string_literal: true
2013-02-05 14:16:51 -05:00
class Admin::AdminController < ApplicationController
requires_login
before_action :ensure_admin
2013-02-05 14:16:51 -05:00
def index
render body: nil
2013-02-05 14:16:51 -05:00
end
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