osiris
osiris copied to clipboard
Separate blocks for same path, different content type
It would look something like this:
get("/foo", HTML) { req ->
...
}
get("/foo", JSON) { req ->
...
}
The response header should be automatically set.