New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New @http syntax: *
for {proxy+}
#969
Comments
I like this proposed concept! I think starting with |
Question: Where Feedback:
YES! I think it's okay to forcibly push folks to move on to the new stuff, unless there are legitimate reasons why someone couldn't migrate to the new and shiny because of a limit of the framework. |
I'm open to ideas on how to handle |
Quick update: looking at making this feature Architect 7.1, shooting for an RC this week! |
Another update: Architect 7.1.0 RC is now live! |
bug report for
demo failing behavior: https://jwpm1ssy75.execute-api.us-east-1.amazonaws.com |
Thank you, |
Yes, it's being a breaking change was exactly what I was also thinking while writing my previous message down. In all honesty, the "fix" for all apps would literally be adding a single Also, on a somewhat related note, with the current behavior (i.e., |
I somewhat misspoke previously, current I think it's probably time for us to resolve the confusing root behavior though. This may require a breaking change. |
Oh… That's even more confusing then. 👍 Thanks for the update @ryanblock
:two-cents: I know it's not ideal, but for whatever it's worth, I think it's okay to break things, again, since the "fix" is about only few characters in |
Mainlined and released tonight as |
Today you can capture dynamic paths in
@http
functions one of two ways:get /
– greedy, captures everything that wasn't captured by the other routes you definesrc/http/get-index
[get|post|etc.] /path/:param
where:param
captures any request in that part of the URL/path/foo
, if you requested/path/foo/bar
, it would actually fall back toget /
src/http/get-path-000param
@kristoferjoseph recently suggested an idea that was echoed by @patcat in Architect chat: adding support for API Gateway's
{proxy+}
syntax.Proposing it look something like this:
[get|post|etc.] /path/*
where*
is equivalent to{proxy+}
/path/foo
, as well as one to/path/foo/bar
src/http/get-path-catchall
– would need to build conflict support in case there's also aget /path/catchall
path definedSince this would be the first new
@http
feature following the Chupacabra launch withHTTP
APIs support, I'd propose this, and the upcoming@proxy
pragma support be forHTTP
APIs only. Thoughts?The text was updated successfully, but these errors were encountered: