-
Use case: one of my endpoints needs to access cookies ( What's the cleanest way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @JUNIORCO , Take a look on the first example of Middlewares in the documentation: https://github.com/RobinTail/express-zod-api#middlewares Thus, you can make your endpoint handler aware of certain properties of For redirecting you should make a ResultHandler, which has direct access to By the way, there was another discussion on Cookies. Check this out: |
Beta Was this translation helpful? Give feedback.
Hello @JUNIORCO ,
Take a look on the first example of Middlewares in the documentation:
https://github.com/RobinTail/express-zod-api#middlewares
Thus, you can make your endpoint handler aware of certain properties of
request
viaoptions
.For redirecting you should make a ResultHandler, which has direct access to
request
andresponse
.By the way, there was another discussion on Cookies. Check this out:
#710 (comment)