Created
August 20, 2013 09:03
-
-
Save hhariri/6279023 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server.get("/book", | |
{ | |
response.negotiate ( | |
"text/html" with { send("Something about me") }, | |
"application/json" with { send("{title: 'Something about me', isbn: 'IS454-12123-A23232'}")} | |
) | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment