File tree Expand file tree Collapse file tree 3 files changed +1
-10
lines changed Expand file tree Collapse file tree 3 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -2,5 +2,4 @@ source 'https://rubygems.org'
22gem 'sinatra'
33gem 'sinatra-subdomain'
44gem 'json'
5- gem 'sequel'
65gem 'mysql2'
Original file line number Diff line number Diff line change 77 rack (2.0.3 )
88 rack-protection (2.0.0 )
99 rack
10- sequel (4.47.0 )
1110 sinatra (2.0.0 )
1211 mustermann (~> 1.0 )
1312 rack (~> 2.0 )
@@ -23,7 +22,6 @@ PLATFORMS
2322DEPENDENCIES
2423 json
2524 mysql2
26- sequel
2725 sinatra
2826 sinatra-subdomain
2927
Original file line number Diff line number Diff line change 55require 'json'
66require 'date'
77require 'mysql2'
8- require 'sequel'
98require './data/company_info.rb'
109require './data/falcon9.rb'
1110require './data/home_info.rb'
1413require './data/dragon.rb'
1514
1615# DB Connection initiated
17- DB = Sequel . connect ( 'mysql2://ofyslai9g5zjznpq:tvgm1fkpfh8iq5gp@wvulqmhjj9tbtc1w.cbetxkdyhwsb.us-east-1.rds.amazonaws.com:3306/vew7rq9f0fviu36f' )
16+
1817
1918# Disables rack protection because of false positives
2019# that were blocking connections to home page
3029subdomain :api do
3130
3231get '/' do
33- content_type :json
34- DB . fetch ( "SELECT * FROM launches" ) do |row |
35- row = row [ :name ]
36- JSON . pretty_generate ( row )
37- end
3832end
3933
4034get '/info' do
You can’t perform that action at this time.
0 commit comments