module PeriscopeRails class Engine < Rails::Engine initializer "periscope_rails.add_routes" do |app| app.routes.prepend do match "periscope/login", :to => "periscope#login", :as => "periscope_login" match "periscope/look", :to => "periscope#look", :as => "periscope_look" end end end end