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

docs are very vague on this
4 Replies
stiba
stiba•12mo ago
An API-route?
Samual 🦢
Samual 🦢OP•12mo ago
nope, a regular route
stiba
stiba•12mo ago
Can you describe your usecase?
Samual 🦢
Samual 🦢OP•12mo 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