feat: CORS enable button... small fixes

This commit is contained in:
Zakaria
2026-09-27 15:40:15 -04:00
parent b474e823ce
commit e8843a462b
2 changed files with 19 additions and 1 deletions
@@ -220,7 +220,7 @@ export class AwsApiGatewayAdapter implements CloudServiceAdapter {
async deleteApiGatewayRoute(apiId: string, input: ApiGatewayDeleteRouteInput): Promise<void> {
const method = input.method.toUpperCase()
const stage = stageName(input.stage)
if (!['GET', 'POST', 'PUT', 'DELETE'].includes(method)) throw new ValidationError('method must be GET, POST, PUT, or DELETE')
if (!CORS_METHODS.includes(method)) throw new ValidationError('method must be GET, POST, PUT, DELETE, or OPTIONS')
if (!stringValue(input.resourceId)) throw new ValidationError('resourceId is required')
const route = await this.apiGateway.send(new GetMethodCommand({