mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
* fix(apigatewayv2): provision integration, route and stage on quick create CreateApi's `target` parameter (quick create) was accepted but silently ignored: no AWS_PROXY integration, no "$default" route, and no "$default" stage were ever created. Without a stage, ApiGatewayExecuteApiHostFilter.stageExists() throws "Stage not found", the filter returns without rewriting the request, and it falls through to whichever other virtual-hosted-style filter claims the host next (S3's, in the common case) instead of reaching the API. Provision the AWS_PROXY integration, "$default" route, and auto-deploy "$default" stage that real API Gateway creates for quick create, using the existing createIntegration/createRoute/createStage helpers. Fixes #1902 * fix(apigatewayv2): use HTTP_PROXY for HTTP URL quick-create targets Quick create hardcoded AWS_PROXY regardless of target shape, so an HTTP URL target got routed through Lambda ARN parsing and failed invocation instead of reaching the configured endpoint (spotted by review). Detect the target kind (arn: prefix vs HTTP URL) and pick AWS_PROXY/POST or HTTP_PROXY/ANY accordingly, matching real API Gateway's quick-create behavior. Also drop the em-dashes from the new comment and Javadoc per AGENTS.md's style rule, and split the single test into one covering each target kind. --------- Co-authored-by: Karan-Tekuncorked <karan@tekuncorked.com>