Module: Bot::RouteExtensions

Defined in:
lib/bot/route_extensions.rb

Instance Method Summary collapse

Instance Method Details

#mount_bot(mount_point = '/bot/notify', handler = ApplicationHandler) ⇒ Object



3
4
5
# File 'lib/bot/route_extensions.rb', line 3

def mount_bot(mount_point='/bot/notify', handler=ApplicationHandler)
  post mount_point, to: 'bot/bot#notify', bot: handler
end