> :loudspeaker: Update In v0.20.0, you can now ...
# general
f
📢 Update
In v0.20.0, you can now use Lambda authorizer with 
sst.Api
.
Copy code
new Api(this, "Api", {
  defaultAuthorizationType: ApiAuthorizationType.CUSTOM,
  defaultAuthorizer: new HttpLambdaAuthorizer({
    authorizerName: "LambdaAuthorizer",
    handler: new Function(this, "Authorizer", {
      handler: "src/authorizer.main",
    }),
  }),
  routes: {
    "GET /notes": "src/list.main",
  },
});
More examples here - https://docs.serverless-stack.com/constructs/Api#adding-lambda-authorization
a
thank you for this, this is awesome!
r
Maybe it's time to switch our APIs to HTTP over ReST...
Only thing remaining is usage plan/api keys
a
I was already using HTTP API’s with Auth0. Now I don’t even need Auth0.
😂