Skip to content

Commit

Permalink
Merge pull request #216 from innovencelabs/215-change-api-gateway-api…
Browse files Browse the repository at this point in the history
…s-from-proxy-to-defined-api-endpoints

Endpoints defined individually in SAM template
  • Loading branch information
ambujraj authored May 11, 2024
2 parents af43c9e + b43a5f5 commit f81451b
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 2 deletions.
Empty file.
46 changes: 44 additions & 2 deletions middleware/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,54 @@ Resources:
RABBITMQ_URL: !Ref RabbitMQURL
ENVIRONMENT: !Ref Environment
Events:
ApiEventWithProxy:
HealthCheckApi:
Type: Api
Properties:
RestApiId:
Ref: ByteShareAPIGW
Path: /{proxy+}
Path: /health/{proxy+}
Method: any
UploadApi:
Type: Api
Properties:
RestApiId:
Ref: ByteShareAPIGW
Path: /upload/{proxy+}
Method: any
DownloadApi:
Type: Api
Properties:
RestApiId:
Ref: ByteShareAPIGW
Path: /download/{proxy+}
Method: any
FeedbackApi:
Type: Api
Properties:
RestApiId:
Ref: ByteShareAPIGW
Path: /feedback/{proxy+}
Method: any
SubscribeApi:
Type: Api
Properties:
RestApiId:
Ref: ByteShareAPIGW
Path: /subscribe/{proxy+}
Method: any
UserApi:
Type: Api
Properties:
RestApiId:
Ref: ByteShareAPIGW
Path: /user/{proxy+}
Method: any
ScanApi:
Type: Api
Properties:
RestApiId:
Ref: ByteShareAPIGW
Path: /scan/{proxy+}
Method: any
ByteShareAPIGW:
Type: AWS::Serverless::Api
Expand Down

0 comments on commit f81451b

Please sign in to comment.