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

Version Path
solara-0.7.4 solara/lib/core/dashboard/handler/redirect_handler.rb
solara-0.7.3 solara/lib/core/dashboard/handler/redirect_handler.rb
solara-0.7.2 solara/lib/core/dashboard/handler/redirect_handler.rb
solara-0.7.1 solara/lib/core/dashboard/handler/redirect_handler.rb
solara-0.7.0 solara/lib/core/dashboard/handler/redirect_handler.rb
solara-0.6.0 solara/lib/core/dashboard/handler/redirect_handler.rb
solara-0.5.0 solara/lib/core/dashboard/handler/redirect_handler.rb
solara-0.4.0 solara/lib/core/dashboard/handler/redirect_handler.rb
solara-0.3.0 solara/lib/core/dashboard/handler/redirect_handler.rb
solara-0.2.4 solara/lib/core/dashboard/handler/redirect_handler.rb
solara-0.2.3 solara/lib/core/dashboard/handler/redirect_handler.rb
solara-0.2.2 solara/lib/core/dashboard/handler/redirect_handler.rb
solara-0.2.1 solara/lib/core/dashboard/handler/redirect_handler.rb
solara-0.2.0 solara/lib/core/dashboard/handler/redirect_handler.rb
solara-0.1.0 solara/lib/core/dashboard/handler/redirect_handler.rb