From 753c9109890c7a8db4f27acd40bc2697a4c14eca Mon Sep 17 00:00:00 2001 From: Sdogruyol Date: Sat, 24 Oct 2015 22:57:32 +0300 Subject: [PATCH] Removed redundant code from hello_world --- samples/hello_world.cr | 7 ------- 1 file changed, 7 deletions(-) diff --git a/samples/hello_world.cr b/samples/hello_world.cr index 147c1d0..9e490ae 100644 --- a/samples/hello_world.cr +++ b/samples/hello_world.cr @@ -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