From 3fc75343ba228307080f3ef6a6cae4cf3387a007 Mon Sep 17 00:00:00 2001 From: Edward Foyle Date: Fri, 7 May 2021 08:18:06 -0700 Subject: [PATCH] fix: update overlapping REST path warning (#7276) Update warning message when creating overlapping REST API paths --- .../awscloudformation/service-walkthroughs/apigw-walkthrough.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amplify-category-api/src/provider-utils/awscloudformation/service-walkthroughs/apigw-walkthrough.ts b/packages/amplify-category-api/src/provider-utils/awscloudformation/service-walkthroughs/apigw-walkthrough.ts index cfaddf7b33d..c488f48717f 100644 --- a/packages/amplify-category-api/src/provider-utils/awscloudformation/service-walkthroughs/apigw-walkthrough.ts +++ b/packages/amplify-category-api/src/provider-utils/awscloudformation/service-walkthroughs/apigw-walkthrough.ts @@ -469,7 +469,7 @@ async function askPaths(context, answers, currentPath) { await inquirer.prompt({ name: 'isOverlappingPathOK', type: 'confirm', - message: `This path ${lowerOrderPath} is overlapping with ${higherOrderPath}. ${higherOrderPath} is going to catch all requests from ${lowerOrderPath}. Are you sure you want to continue?`, + message: `The path ${lowerOrderPath} overlaps with ${higherOrderPath}. Users authorized to access ${higherOrderPath} will also have access to ${lowerOrderPath}. Are you sure you want to continue?`, default: false, }) ).isOverlappingPathOK;