Reputation: 26
When adding an API gateway path, by using Amplify CLI the method is always ANY, but I want to use a specific method such as GET, POST, PUT, or DELETE instead of ANY. So, how do I use/change the path method?
Upvotes: 0
Views: 889
Reputation: 1034
This feature isn't supported by Amplify yet, it is marked as a feature request in their GitHub repo where you can follow the discussion about it: The current workaround is to manually edit the Amplify CloudFormation template in amplify/backend/api/<resource-name>/
to create different paths, but the changes to this file are often overwritten by the amplify cli so the solution will only be temporary.
Upvotes: 2