Skip to content

Commit

Permalink
feat: Add get_institution lambda function
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeCarillo committed May 10, 2024
1 parent 9fa1a69 commit 4ed6687
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions iac/lib/lambda_stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export class LambdaStack extends Construct {
private update_user: lambda_js.NodejsFunction;
private create_moderator: lambda_js.NodejsFunction;

private get_institution: lambda_js.NodejsFunction;
private create_institution: lambda_js.NodejsFunction;
private update_institution: lambda_js.NodejsFunction;
private get_all_institutions: lambda_js.NodejsFunction;
Expand Down Expand Up @@ -214,6 +215,14 @@ export class LambdaStack extends Construct {
origins
);

this.get_institution = this.create_lambda(
"get_institution",
environment_variables,
"GET",
restapi_resource,
origins
)

this.functions_need_s3_access = [
this.create_institution,
this.update_institution,
Expand Down

0 comments on commit 4ed6687

Please sign in to comment.