Skip to content

Instantly share code, notes, and snippets.

@samdods
Last active April 10, 2019 07:59
Show Gist options
  • Save samdods/2b73c1011ca6a53c3f0b109909276fd5 to your computer and use it in GitHub Desktop.
Save samdods/2b73c1011ca6a53c3f0b109909276fd5 to your computer and use it in GitHub Desktop.
get("/home") {
return "🏠"
}
get("/people") {
return """
<html><head><style>
h1 { font-size:4cm; text-align: center }
</style></head>
<body><h1>👫👫👫👫👫</h1></body>
</html>
"""
}
Frank.start(port: 4567) // pass in the port number
// Frank.start() // use default port number (method argument's default value, e.g. 8080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment