osiris icon indicating copy to clipboard operation
osiris copied to clipboard

Separate blocks for same path, different content type

Open cjkent opened this issue 7 years ago • 0 comments

It would look something like this:

get("/foo", HTML) { req ->
    ...
}
get("/foo", JSON) { req ->
    ...
}

The response header should be automatically set.

cjkent avatar Nov 13 '17 15:11 cjkent