how do you get a route to respond with an http header?

docs are very vague on this
4 Replies
stiba
stiba•11mo ago
An API-route?
Samual 🦢
Samual 🦢OP•11mo ago
nope, a regular route
stiba
stiba•11mo ago
Can you describe your usecase?
Samual 🦢
Samual 🦢OP•11mo ago
setting a cookie I've figured it out getRequestEvent()?.node.res.appendHeader("x-foo", "bar")
Want results from more Discord servers?
Add your server