Sha256: 288fc23c05e4d176ceccc75d2be0ee26196ad962c0dd5e638499cf6c03c08705
Contents?: true
Size: 474 Bytes
Versions: 6
Compression:
Stored size: 474 Bytes
Contents
# frozen_string_literal: true module Mihari module Endpoints class Configs < Grape::API namespace :configs do desc "Get configs", { is_array: true, success: Entities::Config } get "/" do statuses = Status.check configs = statuses.map do |key, value| { name: key, status: value } end present(configs, with: Entities::Config) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems