Join Slack
Powered by
How do you do a catch all route in the Api constru...
# sst
t
thdxr
07/28/2021, 9:15 PM
How do you do a catch all route in the Api construct?
f
Frank
07/28/2021, 9:16 PM
ANY /{proxy+}
t
thdxr
07/28/2021, 9:16 PM
ty
f
Frank
07/28/2021, 9:17 PM
use this for now… i think there’s a built-in catch-all route for HTTP API.. lemme take a look at it and put it in the next release
t
thdxr
07/28/2021, 9:18 PM
ah cool
f
Frank
07/29/2021, 7:48 AM
Hey
@thdxr
, added support for default route in v0.36.0. Here’s an example
https://docs.serverless-stack.com/constructs/Api#adding-catch-all-route
t
thdxr
07/29/2021, 11:42 AM
oh cool ty
Open in Slack
Previous
Next