From ad66ec04f2a2275697a8142cd50d06674402b795 Mon Sep 17 00:00:00 2001 From: wibed Date: Sun, 4 Oct 2020 08:12:53 +0200 Subject: [PATCH] add: http client publicised for global access --- Sources/SendGrid/Application+SendGrid.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SendGrid/Application+SendGrid.swift b/Sources/SendGrid/Application+SendGrid.swift index ac29d29..d64ef1d 100644 --- a/Sources/SendGrid/Application+SendGrid.swift +++ b/Sources/SendGrid/Application+SendGrid.swift @@ -28,7 +28,7 @@ extension Application { let application: Application - var http: SendGridClient { + public var http: SendGridClient { guard let config = self.application.sendGridClients.configuration else { fatalError("SendGridClient has not been configured. Use app.sendGridClients.configuration = ...") }