add bones
This commit is contained in:
parent
573e16d1e2
commit
d94f9c96da
15
server.cr
Normal file
15
server.cr
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
require "kemal"
|
||||||
|
|
||||||
|
get "/" do
|
||||||
|
"Hello World!"
|
||||||
|
end
|
||||||
|
|
||||||
|
get "/ip" do |env|
|
||||||
|
env.response.content_type = "text/plain"
|
||||||
|
|
||||||
|
p! env.request.remote_address.to_s
|
||||||
|
|
||||||
|
"Hello World!"
|
||||||
|
end
|
||||||
|
|
||||||
|
Kemal.run
|
Loading…
Reference in New Issue
Block a user