Skip to content

Instantly share code, notes, and snippets.

@faustinoaq
Last active December 6, 2017 03:14
Show Gist options
  • Save faustinoaq/5012f39a4913131d961263791e5811ac to your computer and use it in GitHub Desktop.
Save faustinoaq/5012f39a4913131d961263791e5811ac to your computer and use it in GitHub Desktop.
Using Kemal via def to proc
require "kemal"
def index(env)
"Hello World!"
end
get "/", &->index(HTTP::Server::Context)
Kemal.run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment