Skip to content

Commit

Permalink
remove UI route
Browse files Browse the repository at this point in the history
  • Loading branch information
devksingh4 committed Aug 4, 2024
1 parent 60a8de5 commit fc03efd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 187 deletions.
24 changes: 0 additions & 24 deletions docs/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,6 @@ info:
email: [email protected]

paths:
/:
get:
summary: Get UI
operationId: getui

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:
Fn::Sub: arn:aws:apigateway:${AWS::Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:${ApplicationPrefix}-lambda/invocations

/api/v1/healthz:
get:
summary: Ping the API
Expand Down
9 changes: 0 additions & 9 deletions src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@
)
app = APIGatewayRestResolver(cors=cors_config)

@app.get("/")
def get_ui():
with open("index.html", "r") as file:
return Response(
status_code=200,
content_type=content_types.TEXT_HTML,
body=file.read()
)

@app.get("/api/v1/healthz")
def healthz():
return Response(
Expand Down
154 changes: 0 additions & 154 deletions src/index.html

This file was deleted.

0 comments on commit fc03efd

Please sign in to comment.