hey guys, didn’t really get an answer to this one ...
# help
h
hey guys, didn’t really get an answer to this one my versions
Copy code
SST 0.69.7
CDK 2.15.0
It seems the api doesn’t respect per route authorization settings
my stack here
and the synthed output note, both routes have an
AuthorizationType
of
NONE
when setting a default authorizer, i cannot seem to disable it for the
/public
endpoint
synthed output, note both routes now have an
AuthorizationType
of
CUSTOM
using vanilla cdk constructs, i get the expected output, with one route having
NONE
and one having
CUSTOM
f
Hey @Hans Song, instead of this
Copy code
"GET /private": {
  functionName,
  handler,
  authorizationType,
  authorizer,
},
try this
Copy code
"GET /private": {
  function: {
    functionName,
    handler,
  },
  authorizationType,
  authorizer,
},
In SST v1, we made the constructs typesafe, u should get a type error with the version u had.
h
you always mention v1…. i really need to bump the upgrade up my priority list 😂