module WolfCore::Barton::Routing
def route_event_request(path:, body:)
def route_event_request(path:, body:) domain_url = ENV['CURRENT_SAM_URL'] if domain_url.present? async_http_post(url: "#{domain_url}/#{path}", body: body) else function_name = PATH_TO_FUNCTION_NAME_MAPPING[path] invoke_lambda( function_name: function_name, payload: body, ) end end