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