2017-04-29 22:23:45 +00:00
|
|
|
# frozen_string_literal: true
|
2017-04-13 11:09:07 +00:00
|
|
|
|
|
|
|
module WellKnown
|
2023-04-19 14:07:29 +00:00
|
|
|
class HostMetaController < ActionController::Base # rubocop:disable Rails/ApplicationController
|
2017-06-02 20:21:36 +00:00
|
|
|
include RoutingHelper
|
|
|
|
|
2017-04-13 11:09:07 +00:00
|
|
|
def show
|
|
|
|
@webfinger_template = "#{webfinger_url}?resource={uri}"
|
2019-07-08 10:03:45 +00:00
|
|
|
expires_in 3.days, public: true
|
2020-01-03 04:28:56 +00:00
|
|
|
render content_type: 'application/xrd+xml', formats: [:xml]
|
2017-04-13 11:09:07 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|