Skip to content

Commit

Permalink
Merge pull request #34 from Instituto-Maua-de-Tecnologia/adding/get-a…
Browse files Browse the repository at this point in the history
…ctivity

Adding/get activity
  • Loading branch information
FelipeCarillo authored May 10, 2024
2 parents 9c1b2b5 + c737457 commit 2d44c40
Show file tree
Hide file tree
Showing 15 changed files with 946 additions and 511 deletions.
9 changes: 9 additions & 0 deletions iac/lib/lambda_stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export class LambdaStack extends Construct {
private get_all_institutions: lambda_js.NodejsFunction;

private assign_user: lambda_js.NodejsFunction;
private get_activity: lambda_js.NodejsFunction;
private create_activity: lambda_js.NodejsFunction;
private update_activity: lambda_js.NodejsFunction;
private get_all_activities: lambda_js.NodejsFunction;
Expand Down Expand Up @@ -205,6 +206,14 @@ export class LambdaStack extends Construct {
origins
);

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

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

0 comments on commit 2d44c40

Please sign in to comment.