Is there any way to make the names of the function...
# sst
k
Is there any way to make the names of the functions more descriptive (e.x using tags with the full path or something) so they can be more easily identified in
Seed
, e.x picture shows different endpoints but there is no real way to know which one is which
f
Hey @Kujtim Hoxha, you can provide the
functionName
name in your route, ie:
Copy code
new sst.Api(this, "Api", {
  routes: {
    "GET /": {
      functionName: `${app.stage}-get-users`,
      handler: "src/lambda.main",
    }
  },
});
k
Ah ok got it, I love the clean way of defining the routes just with a single string but yeah I will have to do this for more readability thanks
f
We are going to provide an option to auto-generate friendly Lambda names soon. But for now, you’d have to do it manually.
k
Ok awesome
Thanks