:loudspeaker: Update 1 `sst.Api` now supports catc...
# general
f
📢 Update 1
sst.Api
now supports catch-all route in v0.36.0. Just add an
$default
route like this:
Copy code
new Api(this, "Api", {
  routes: {
    "GET /notes" : "src/list.main",
    "POST /notes": "src/create.main",
    "$default"   : "src/default.main",
  },
});
📢 Update 2
sst.Api
now supports HTTP proxy integration. You can point an Api route to a public url:
Copy code
new Api(this, "Api", {
  routes: {
    "GET /": {
      url: "<http://api.mydomain.com>",
    },
  },
});
d
yes to proxy integration!