Permalink
Browse files

Renamed controller.rb to application.rb and added some comments

  • Loading branch information...
1 parent 46909ab commit 407a83b8dffba7d9dae72e4fe1a0a5d770d16b8d @shyndman shyndman committed May 2, 2012
Showing with 6 additions and 3 deletions.
  1. +1 −1 lib/last-resort.rb
  2. +5 −2 lib/last-resort/{controller.rb → application.rb}
View
@@ -10,7 +10,7 @@
require 'last-resort/scheduler'
require 'last-resort/twilio'
require 'last-resort/webhooks'
-require 'last-resort/controller'
+require 'last-resort/application'
LastResort::Application.run! if $0 == __FILE__
@@ -1,6 +1,4 @@
-# The exception session keeps state between twilio and context-io webhooks. Currently, the system can only handle
-# one call session at a time, although we plan to change that in future versions.
require 'sinatra/base'
@@ -12,6 +10,9 @@ def initialize
super
end
+ # The exception session keeps state between twilio and context-io webhooks. Currently, the
+ # system can only handle one call session at a time, although we plan to change that in future
+ # versions.
def self.exception_session
@exception_session
end
@@ -20,6 +21,8 @@ def self.exception_session=(session)
@exception_session = session
end
+ # ====== SERVER CHECK ROUTE
+
get "/" do
"Last Resort server running"
end

0 comments on commit 407a83b

Please sign in to comment.