is there some way with the `Api` construct to spec...
# help
s
is there some way with the
Api
construct to specify a wildcard for a route? e.g.
GET /something/*
? I need the route to match
/something/123abc
as well as
/something/hi/hello
. does
GET /something/{proxy+}
work?
a
The AWS documentation applies. Looks like maybe you saw it already saw it, since one of your examples is the {proxy+}
In short, yes I'd expect {proxy+} to do what you want. I haven't used it myself though.
s
thanks! I wasn’t sure if SST added its own syntactical sugar or not
f
@Adam Fanello Thanks for chiming in!
@Sam Hulick
proxy+
should work
Copy code
new Api(this, "Api", {
  routes: {
    "GET /something/{proxy+}": "src/something.main",
  },
});
s
works! thanks 🙂