host_meta_controller.rb 370 B

12345678910111213
  1. # frozen_string_literal: true
  2. module WellKnown
  3. class HostMetaController < ActionController::Base # rubocop:disable Rails/ApplicationController
  4. include RoutingHelper
  5. def show
  6. @webfinger_template = "#{webfinger_url}?resource={uri}"
  7. expires_in 3.days, public: true
  8. render content_type: 'application/xrd+xml', formats: [:xml]
  9. end
  10. end
  11. end