Paid Membership Check
diff --git a/code/mapper.py b/code/mapper.py index e60c9c5..8bc21a3 100644 --- a/code/mapper.py +++ b/code/mapper.py @@ -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 } } diff --git a/docs/swagger.yml b/docs/swagger.yml index cf0b805..0d63664 100644 --- a/docs/swagger.yml +++ b/docs/swagger.yml @@ -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