parent
70c50d321a
commit
739c9688ae
|
@ -0,0 +1,10 @@
|
||||||
|
require_dependency 'site_serializer'
|
||||||
|
|
||||||
|
class SiteController < ApplicationController
|
||||||
|
|
||||||
|
def index
|
||||||
|
@site = Site.new(guardian)
|
||||||
|
render_serialized(@site, SiteSerializer)
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
|
@ -14,6 +14,8 @@ Discourse::Application.routes.draw do
|
||||||
match "/404", to: "exceptions#not_found", via: [:get, :post]
|
match "/404", to: "exceptions#not_found", via: [:get, :post]
|
||||||
|
|
||||||
mount Sidekiq::Web => "/sidekiq", constraints: AdminConstraint.new
|
mount Sidekiq::Web => "/sidekiq", constraints: AdminConstraint.new
|
||||||
|
|
||||||
|
get "site" => "site#index"
|
||||||
|
|
||||||
resources :forums
|
resources :forums
|
||||||
get "srv/status" => "forums#status"
|
get "srv/status" => "forums#status"
|
||||||
|
|
Loading…
Reference in New Issue