Incorrect api docs

Small typo in this:
https://docs.layer0.co/docs/api/core/classes/router_responsewriter.responsewriter.html#addresponsecookie

This

 new Router()
   .get('/some/path', ({ addUpstreamResponseCookie, proxy }) => {
     proxy('origin')
     addResponseCookie('my-cookie', 'my-cookie-value')
   })

Should be

 new Router()
   .get('/some/path', ({ addResponseCookie, proxy }) => {
     proxy('origin')
     addResponseCookie('my-cookie', 'my-cookie-value')
   })

Wasn’t sure where to post this, let me know if this is not the correct platform.

Thanks for reporting this. I’ve updated the documentation to reflect various typo fixes.

https://docs.layer0.co/docs/api/core/classes/router_responsewriter.responsewriter.html#addresponsecookie

1 Like