Removed redundant code from hello_world

This commit is contained in:
Sdogruyol 2015-10-24 22:57:32 +03:00
parent fa00265345
commit 753c910989
1 changed files with 0 additions and 7 deletions

View File

@ -4,10 +4,3 @@ require "kemal"
get "/" do
"Hello Kemal!"
end
# You can easily access the environment and set content_type like 'application/json'.
# Look how easy to build a JSON serving API.
get "/user.json" do |env|
env.response.content_type = "application/json"
{name: "Serdar", age: 27}.to_json
end