Removed redundant code from hello_world
This commit is contained in:
parent
fa00265345
commit
753c910989
1 changed files with 0 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue