Sha256: a0b281182371d6e179702fd4d9127d5d33597abf3ab35489ba4ca9efd7a705d9
Contents?: true
Size: 508 Bytes
Versions: 24
Compression:
Stored size: 508 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, summary: "Get configs" } 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
24 entries across 24 versions & 1 rubygems