Skip to content

Commit af41aaf

Browse files
committed
update doc
1 parent 25bd385 commit af41aaf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ struct QuoteServiceImpl: APIProtocol, OpenAPILambdaHttpApi { // <-- 3. add the O
8080

8181
// the entry point for your Lambda function
8282
static func main() async throws { // <-- 5. add this entry point to start the lambdaRuntime
83-
try await Self.run()
83+
let openAPIService = QuoteServiceImpl()
84+
try await openAPIService.run()
8485
}
8586

8687
// Your existing OpenAPI implementation

assets/swift-openapi-lambda.gif

34.1 KB
Loading

0 commit comments

Comments
 (0)