Implemented sinatra-like get method