We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b87d0f7 commit 2d012dfCopy full SHA for 2d012df
app.rb
@@ -13,7 +13,7 @@
13
require './data/dragon.rb'
14
15
# DB Connection initiated
16
-
+DB = Mysql2::Client.new(:host => "wvulqmhjj9tbtc1w.cbetxkdyhwsb.us-east-1.rds.amazonaws.com", :username => "ofyslai9g5zjznpq")
17
18
# Disables rack protection because of false positives
19
# that were blocking connections to home page
@@ -29,6 +29,8 @@
29
subdomain :api do
30
31
get '/' do
32
+ results = client.query("SELECT * FROM launches")
33
+ results.count
34
end
35
36
get '/info' do
0 commit comments