Last active
May 14, 2020 15:56
-
-
Save mprokopov/f64bb6be7cced44164de94a61595cd99 to your computer and use it in GitHub Desktop.
simple ruby webserver
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'sinatra' | |
| require 'json' | |
| set :bind, '0.0.0.0' | |
| set :port, 8080 | |
| get '/' do | |
| { name: 'Hello', | |
| description: 'World', | |
| Url: request.url }.to_json | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment