Skip to content

Commit 1ebb5f2

Browse files
committed
added documentation for website backend API
1 parent ef03bd0 commit 1ebb5f2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/utils/awsAccess.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ export async function processAWSAccessRequest(
2727
userId: discordUserId,
2828
};
2929

30+
/**
31+
* Grant AWS access is the API in website backend,
32+
* which takes the discordId and AWS groupId, it fetches the
33+
* user based on the discordId, checks if the user is part of AWS account
34+
* if not creates a new user and adds user to the AWS group.
35+
*/
36+
3037
const response = await fetch(grantAWSAccessAPIUrl, {
3138
method: "POST",
3239
headers: {

0 commit comments

Comments
 (0)