Last active
December 6, 2017 03:14
-
-
Save faustinoaq/5012f39a4913131d961263791e5811ac to your computer and use it in GitHub Desktop.
Using Kemal via def to proc
This file contains 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
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