plugins/dns_service/app/services/service_layer/dns_service_service.rb
# middleware for elektron to setup headers based on params
middleware for elektron to setup headers based on params
middleware for elektron to setup headers based on params
def create_elektron_service
      dns = elektron.service('dns', path_prefix: '/v2')
      dns.middlewares.add(SetupHeadersMiddleware)
      dns
    end
def create_elektron_service dns = elektron . service ( 'dns' , path_prefix : '/v2' ) dns . middlewares . add ( SetupHeadersMiddleware ) dns end
middleware for elektron to setup headers based on params
middleware for elektron to setup headers based on params