Sha256: b1612b68b8041a8c3852fbbfc5b46342927f07484a8c78e9ff03779ee8ba2d3c
Contents?: true
Size: 314 Bytes
Versions: 30
Compression:
Stored size: 314 Bytes
Contents
module RootPresenter include Gris::Presenter link :self do |opts| "#{base_url(opts)}" end link :health do |opts| { href: "#{base_url(opts)}/health" } end # Additional endpoint links private def base_url(opts) request = Grape::Request.new(opts[:env]) request.base_url end end
Version data entries
30 entries across 30 versions & 1 rubygems