How to send HTML?
jepotter1-archive opened this issue · 2 comments
jepotter1-archive commented
I have the following code in a controller:
@RouteGet("/hey") sayHello() {
return `<h1>Hey!</h1>`
}
But the return type is text/plain
. How do I make the return type text/html
?
DanTsk commented
Oops, found that setType(...)
method missed on the controller and existed only in local draft. Give me the few minutes, I will push updates. :)