diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb new file mode 100644 index 000000000..a5d44fb48 --- /dev/null +++ b/app/controllers/site_controller.rb @@ -0,0 +1,10 @@ +require_dependency 'site_serializer' + +class SiteController < ApplicationController + + def index + @site = Site.new(guardian) + render_serialized(@site, SiteSerializer) + end + +end \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 36907a117..00ed52c52 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -14,6 +14,8 @@ Discourse::Application.routes.draw do match "/404", to: "exceptions#not_found", via: [:get, :post] mount Sidekiq::Web => "/sidekiq", constraints: AdminConstraint.new + + get "site" => "site#index" resources :forums get "srv/status" => "forums#status"