Skip to content

Commit 7c6f62f

Browse files
committed
chore(example): replace factory
- Replaces the factory method of `RestApiWithSpec` with the constructor. issue #4
1 parent 5b7a07c commit 7c6f62f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/lib/example-stack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class ExampleStack extends Stack {
2222

2323
const documentationVersion = '0.0.1';
2424

25-
const api = RestApiWithSpec.createRestApi(this, 'example-api', {
25+
const api = new RestApiWithSpec(this, 'example-api', {
2626
description: 'Example of RestApiWithSpec',
2727
openApiInfo: {
2828
version: documentationVersion,

0 commit comments

Comments
 (0)