module Trailblazer::Endpoint::Controller::InstanceMethods

Public Instance Methods

endpoint_for(name, config_source: self.class) click to toggle source
# File lib/trailblazer/endpoint/controller.rb, line 127
def endpoint_for(name, config_source: self.class)
  config_source.options_for(:endpoints, {}).fetch(name.to_s) # TODO: test non-existant endpoint
end