Websites/app/controllers/e621_ws/status_controller.rb
2024-05-02 22:04:43 -05:00

27 lines
502 B
Ruby

# 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
end
end