Sha256: 9234c2a77459ac919e2fb79bddac20d6fe6c3060203a3ac5e3774846672cc86f
Contents?: true
Size: 633 Bytes
Versions: 3
Compression:
Stored size: 633 Bytes
Contents
# frozen_string_literal: true module Mihari module Web module Endpoints # # Config API endpoint # class Configs < Grape::API namespace :configs do desc "Get configs", { is_array: true, success: Entities::Config, summary: "Get configs" } get "/" do configs = (Mihari.analyzers + Mihari.emitters + Mihari.enrichers).filter_map do |klass| Mihari::Structs::Config.from_class(klass) end present(configs, with: Entities::Config) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mihari-5.7.2 | lib/mihari/web/endpoints/configs.rb |
mihari-5.7.1 | lib/mihari/web/endpoints/configs.rb |
mihari-5.7.0 | lib/mihari/web/endpoints/configs.rb |