Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
devksingh4 committed Aug 6, 2023
1 parent 1c9c01a commit 984b64a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 36 deletions.
Binary file removed code/banner.png
Binary file not shown.
2 changes: 1 addition & 1 deletion code/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<body>
<div class="main">
<div class="banner">
<img src="banner.png" alt="ACM @ UIUC Logo">
<img src="https://acm-brand-images.s3.amazonaws.com/banner.png" alt="ACM @ UIUC Logo">
</div>

<p class="sign" align="center">Paid Membership Check</p>
Expand Down
11 changes: 0 additions & 11 deletions code/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,11 @@ def getUI(context, queryParam) -> dict:
'body': file.read()
}

def getBanner(context, queryParam) -> dict:
with open("banner.png", "r") as file:
return {
"statusCode": 200,
"headers": {
'Content-Type': 'image/png'
},
'body': file.read()
}

find_handler = {
"GET": {
"/api/v1/healthz": healthzHandler,
"/api/v1/checkMembership": getPaidMembership,
"/": getUI,
"/banner.png": getBanner
}
}

Expand Down
24 changes: 0 additions & 24 deletions docs/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,30 +34,6 @@ paths:
type: aws_proxy
uri: arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:298118738376:function:infra-membership-api-lambda/invocations

/banner.png:
get:
summary: Get Logo
operationId: getlogo

responses:
200:
description: OK


x-amazon-apigateway-auth:
type: NONE

x-amazon-apigateway-integration:
responses:
default:
statusCode: 200
passthroughBehavior: when_no_match
httpMethod: POST
contentHandling: CONVERT_TO_TEXT
type: aws_proxy
uri: arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:298118738376:function:infra-membership-api-lambda/invocations


/api/v1/healthz:
get:
summary: Ping the API
Expand Down

0 comments on commit 984b64a

Please sign in to comment.