|
|
@ -54,7 +54,7 @@ get '/stock_objs' do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
get '/lifepaths/:stock' do |
|
|
|
get '/lifepaths/:stock' do |
|
|
|
if DATA[:stocks].include? params['stock'] |
|
|
|
if DATA[:stock_objs].keys.include? params['stock'] |
|
|
|
json DATA[:lifepaths][params['stock']] |
|
|
|
json DATA[:lifepaths][params['stock']] |
|
|
|
else |
|
|
|
else |
|
|
|
404 |
|
|
|
404 |
|
|
@ -62,7 +62,7 @@ get '/lifepaths/:stock' do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
get '/starting_stat_pts/:stock' do |
|
|
|
get '/starting_stat_pts/:stock' do |
|
|
|
if DATA[:stocks].include? params['stock'] |
|
|
|
if DATA[:stock_objs].keys.include? params['stock'] |
|
|
|
json DATA[:stat_pts][params['stock']] |
|
|
|
json DATA[:stat_pts][params['stock']] |
|
|
|
else |
|
|
|
else |
|
|
|
404 |
|
|
|
404 |
|
|
@ -70,7 +70,7 @@ get '/starting_stat_pts/:stock' do |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
get '/resources/:stock' do |
|
|
|
get '/resources/:stock' do |
|
|
|
if DATA[:stocks].include? params['stock'] |
|
|
|
if DATA[:stock_objs].keys.include? params['stock'] |
|
|
|
json DATA[:resources][params['stock']] |
|
|
|
json DATA[:resources][params['stock']] |
|
|
|
else |
|
|
|
else |
|
|
|
404 |
|
|
|
404 |
|
|
|