We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a823e82 commit 15d2598Copy full SHA for 15d2598
1 file changed
Sources/Vercel/Handlers/ExpressHandler.swift
@@ -5,6 +5,8 @@
5
// Created by Andrew Barba on 1/21/23.
6
//
7
8
+import AWSLambdaRuntime
9
+
10
public protocol ExpressHandler: RequestHandler {
11
12
static var basePath: String { get }
@@ -18,7 +20,7 @@ extension ExpressHandler {
18
20
return "/"
19
21
}
22
- public static func setup() async throws {
23
+ public static func setup(context: LambdaInitializationContext) async throws {
24
// Create the router
25
let router = Router(prefix: basePath)
26
// Configure router in user code
0 commit comments