Sha256: 1b374f49885625ec8f7ecf6b9853077dbec38df3f22c1ec6d48d02b94d4234d3
Contents?: true
Size: 442 Bytes
Versions: 24
Compression:
Stored size: 442 Bytes
Contents
# frozen_string_literal: true module Mihari module Endpoints class Sources < Grape::API namespace :sources do desc "Get sources", { is_array: true, success: Entities::Sources, summary: "Get sources" } get "/" do sources = Mihari::Alert.distinct.pluck(:source) present({ sources: sources }, with: Entities::Sources) end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems