diff --git a/Sources/Flash/Extensions/Future+Flash.swift b/Sources/Flash/Extensions/Future+Flash.swift index cbda35b..53aabae 100644 --- a/Sources/Flash/Extensions/Future+Flash.swift +++ b/Sources/Flash/Extensions/Future+Flash.swift @@ -1,7 +1,7 @@ import Vapor public extension Future where T: Response { - public func flash(_ type: Flash.Kind, _ message: String) -> Future { + func flash(_ type: Flash.Kind, _ message: String) -> Future { return map(to: Response.self) { res in return res.flash(type, message) } diff --git a/Sources/Flash/Extensions/LeafTagConfig.swift b/Sources/Flash/Extensions/LeafTagConfig.swift index 19e5391..ff7f79c 100644 --- a/Sources/Flash/Extensions/LeafTagConfig.swift +++ b/Sources/Flash/Extensions/LeafTagConfig.swift @@ -1,7 +1,7 @@ import Leaf public extension LeafTagConfig { - public mutating func useFlashLeafTags() { + mutating func useFlashLeafTags() { use(FlashTag(), as: "flash") } } diff --git a/Sources/Flash/Extensions/Response+Flash.swift b/Sources/Flash/Extensions/Response+Flash.swift index dc1eafd..dd3cf19 100644 --- a/Sources/Flash/Extensions/Response+Flash.swift +++ b/Sources/Flash/Extensions/Response+Flash.swift @@ -1,7 +1,7 @@ import Vapor public extension Response { - public func flash(_ type: Flash.Kind, _ message: String) -> Response { + func flash(_ type: Flash.Kind, _ message: String) -> Response { if let container = try? privateContainer.make(FlashContainer.self) { container.flashes.append(.init(type, message)) }