Skip to content

Commit

Permalink
fix: export and add docs for metering-provider and fix update meters …
Browse files Browse the repository at this point in the history
…endpoint (#86)

* fix: export and add docs for metering-provider

* fix path for updating meters
  • Loading branch information
suhussai committed Aug 23, 2024
1 parent 531ad38 commit 76a8d16
Show file tree
Hide file tree
Showing 3 changed files with 164 additions and 1 deletion.
162 changes: 162 additions & 0 deletions API.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/control-plane/metering/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
// SPDX-License-Identifier: Apache-2.0

export * from './metering-interface';
export * from './metering-provider';
2 changes: 1 addition & 1 deletion src/control-plane/metering/metering-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class MeteringProvider extends Construct {

if (props.metering.updateMeterFunction) {
routes.push({
path: `${metersPath}/meterId`,
path: `${metersPath}/{meterId}`,
method: apigatewayV2.HttpMethod.PUT,
integration: new apigatewayV2Integrations.HttpLambdaIntegration(
'updateMeterHttpLambdaIntegration',
Expand Down

0 comments on commit 76a8d16

Please sign in to comment.