Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
all: add the main entrypoint
main.rb | 23 +++++++++++++++++++++++
diff --git a/main.rb b/main.rb new file mode 100644 index 0000000000000000000000000000000000000000..f99a88dd3142b6dba0cb61f150e5a839db1e22bb --- /dev/null +++ b/main.rb @@ -0,0 +1,23 @@ +require File.join(File.dirname(__FILE__), 'config', 'boot') + +module App + class Api < Sinatra::Base + + error do + $stderr.puts "Hm, there was a error - #{request.env['sinatra.error'].inspect}" + end + + get "/" do + # Silk Character ID + silk_id = 1017815 + story_id = 202161 + + client = Marvel::Client.new + @story = client.story(story_id) + @characters = client.characters_from_story(story_id) + + erb :index + end + end +end +