Skip to content

Instantly share code, notes, and snippets.

@bennacer860
Created July 6, 2017 01:53
Show Gist options
  • Save bennacer860/6ee8febc853c9b8e5241dadc10c32157 to your computer and use it in GitHub Desktop.
Save bennacer860/6ee8febc853c9b8e5241dadc10c32157 to your computer and use it in GitHub Desktop.
require 'sinatra'
class Main < Sinatra::Base
get '/' do
# make call to the database
result = FakeDatabase.connection "select count(*) from users"
"Hello World! #{result[:count]}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment