Skip to content

Commit 15d2598

Browse files
committed
Fix express handler setup conformance
1 parent a823e82 commit 15d2598

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Sources/Vercel/Handlers/ExpressHandler.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// Created by Andrew Barba on 1/21/23.
66
//
77

8+
import AWSLambdaRuntime
9+
810
public protocol ExpressHandler: RequestHandler {
911

1012
static var basePath: String { get }
@@ -18,7 +20,7 @@ extension ExpressHandler {
1820
return "/"
1921
}
2022

21-
public static func setup() async throws {
23+
public static func setup(context: LambdaInitializationContext) async throws {
2224
// Create the router
2325
let router = Router(prefix: basePath)
2426
// Configure router in user code

0 commit comments

Comments
 (0)