Sha256: 7f9b0d713cb776c748fc3c8a232fc94348b342e8346ff1c48287c0a8220e9270
Contents?: true
Size: 303 Bytes
Versions: 25
Compression:
Stored size: 303 Bytes
Contents
module InsightsCloud class HitsController < ::ApplicationController def index host = Host.where(id: host_id_param).first render json: { hits: host.insights.hits, }, status: :ok end private def host_id_param params.require(:host_id) end end end
Version data entries
25 entries across 25 versions & 1 rubygems