Removed redundant code from hello_world
This commit is contained in:
parent
fa00265345
commit
753c910989
|
@ -4,10 +4,3 @@ require "kemal"
|
||||||
get "/" do
|
get "/" do
|
||||||
"Hello Kemal!"
|
"Hello Kemal!"
|
||||||
end
|
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 New Issue