I'd like to be able to just drop the greedy path parameter "{proxy+}" and redirect to an existing api endpoint.
ie, if a user attempts to access www.my-website.com/api/a/b/c/d...
, I'd like to simply return the response www.my-website.com/api/a
would give.
So I configured API Gateway to redirect
blahblah.execute-api.region.amazonaws/com/stage/a/{proxy+}
to
blahblah.execute-api.region.amazonaws/com/stage/a
via HTTP proxy. But when trying to curl my way through to test it, I just get a "301 moved permanently" response.
How do I skip this step and return the target's response directly?