Sha256: e44b78e66767f71c035df81c9d63189a19326ba707c7701bcc37555b78a93a9c
Contents?: true
Size: 402 Bytes
Versions: 15
Compression:
Stored size: 402 Bytes
Contents
class RedirectHandler < BaseHandler def mount @server.mount_proc('/redirect') do |req, res| begin res.content_type = 'application/json' res.body = JSON.generate({ redirect_url: @dashboard_server.home }) rescue StandardError => e handle_error(res, e, "Error in redirect handler") end end end end
Version data entries
15 entries across 15 versions & 1 rubygems