add bones

This commit is contained in:
Alexander Popov 2022-11-06 20:27:59 +00:00
parent 573e16d1e2
commit d94f9c96da
2 changed files with 33 additions and 0 deletions

15
server.cr Normal file
View 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

18
shard.yml Normal file
View File

@ -0,0 +1,18 @@
name: ips
version: 0.1.0
# authors:
# - name <email@example.com>
# description: |
# Short description of ips
dependencies:
kemal:
github: kemalcr/kemal
# development_dependencies:
# webmock:
# github: manastech/webmock.cr
# license: MIT