Skip to content

Commit

Permalink
moving proxy: true
Browse files Browse the repository at this point in the history
  • Loading branch information
dubwub committed Jan 14, 2025
1 parent a04179f commit e003326
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions servers/fdr-deploy/scripts/fdr-deploy-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
StackProps,
Token,
} from "aws-cdk-lib";
import { LambdaRestApi } from "aws-cdk-lib/aws-apigateway";
import { LambdaIntegration, LambdaRestApi } from "aws-cdk-lib/aws-apigateway";
import { Certificate } from "aws-cdk-lib/aws-certificatemanager";
import * as cloudfront from "aws-cdk-lib/aws-cloudfront";
import * as origins from "aws-cdk-lib/aws-cloudfront-origins";
Expand Down Expand Up @@ -274,11 +274,16 @@ export class FdrDeployStack extends Stack {

const getDocsApi = new LambdaRestApi(this, "getdocs-api", {
handler: getDocsLambda.lambdaFunction,
proxy: true,
proxy: false,
});

const docs = getDocsApi.root.addResource("docs");
docs.addMethod("POST");
docs.addMethod(
"POST",
new LambdaIntegration(getDocsLambda.lambdaFunction, {
proxy: true,
})
);

new CfnOutput(
this,
Expand Down

0 comments on commit e003326

Please sign in to comment.