Skip to content

Commit

Permalink
Fix express handler setup conformance
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBarba committed Aug 26, 2023
1 parent a823e82 commit 15d2598
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/Vercel/Handlers/ExpressHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by Andrew Barba on 1/21/23.
//

import AWSLambdaRuntime

public protocol ExpressHandler: RequestHandler {

static var basePath: String { get }
Expand All @@ -18,7 +20,7 @@ extension ExpressHandler {
return "/"
}

public static func setup() async throws {
public static func setup(context: LambdaInitializationContext) async throws {
// Create the router
let router = Router(prefix: basePath)
// Configure router in user code
Expand Down

0 comments on commit 15d2598

Please sign in to comment.