diff --git a/Package.swift b/Package.swift index b3a9116..2eb027a 100644 --- a/Package.swift +++ b/Package.swift @@ -9,7 +9,7 @@ let package = Package( ], dependencies: [ .package(url: "https://github.com/vapor/vapor", from: "4.0.0"), - .package(url: "https://github.com/vapor/leaf", from: "4.0.0-rc"), + .package(url: "https://github.com/vapor/leaf", from: "4.0.0"), .package(url: "https://github.com/JohnSundell/ShellOut", from: "2.3.0") ], targets: [ diff --git a/Sources/SwiftTileserverCache/Misc/Request+LeafRenderer.swift b/Sources/SwiftTileserverCache/Misc/Request+LeafRenderer.swift deleted file mode 100644 index 71fc818..0000000 --- a/Sources/SwiftTileserverCache/Misc/Request+LeafRenderer.swift +++ /dev/null @@ -1,21 +0,0 @@ -// Temp untill https://github.com/vapor/leaf/pull/163 is merged - -import Vapor -import Leaf - -extension Request { - public var leaf: LeafRenderer { - var userInfo = self.application.leaf.userInfo - userInfo["request"] = self - userInfo["application"] = self.application - - return .init( - configuration: self.application.leaf.configuration, - tags: self.application.leaf.tags, - cache: self.application.leaf.cache, - sources: self.application.leaf.sources, - eventLoop: self.eventLoop, - userInfo: userInfo - ) - } -}