2024-05-03 03:04:43 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module E621Ws
|
|
|
|
class StatusController < Status::ApplicationController
|
|
|
|
include ::ApplicationController::CommonAssetRoutes
|
|
|
|
|
|
|
|
def index
|
|
|
|
respond_to do |fmt|
|
|
|
|
fmt.html do
|
|
|
|
@current = E621Status.current
|
|
|
|
end
|
|
|
|
fmt.json do
|
|
|
|
render(json: E621Status.combined)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def current
|
|
|
|
render(json: E621Status.current)
|
|
|
|
end
|
|
|
|
|
|
|
|
def history
|
|
|
|
render(json: E621Status.history)
|
|
|
|
end
|
2024-06-04 19:48:30 +00:00
|
|
|
|
|
|
|
protected
|
|
|
|
|
|
|
|
def site_domain
|
|
|
|
E621WsRoutes::STATUS_DOMAIN
|
|
|
|
end
|
2024-05-03 03:04:43 +00:00
|
|
|
end
|
|
|
|
end
|