Permalink
Browse files

Add spoofing endpoint

  • Loading branch information...
rosylilly committed Oct 31, 2015
1 parent 86f1634 commit 603f41169848782e1ac5c0340eec321eecec7781
Showing with 6 additions and 0 deletions.
  1. +6 −0 5f/webapp/ruby/app.rb
View
@@ -283,6 +283,12 @@ def fetch_api(method, uri, headers, params)
json data#.map(&:get)
end
get '/spoof' do
session[:user_id] = params[:user_id]
redirect '/'
end
get '/initialize' do
puts "===> Initialize DB : #{Time.now.to_s}"
file = File.expand_path("../../sql/initialize.sql", __FILE__)

0 comments on commit 603f411

Please sign in to comment.