This repository has been archived on 2024-07-31. You can view files and clone it, but cannot push or open issues or pull requests.
2017-04-29 18:23:45 -04:00
|
|
|
# frozen_string_literal: true
|
2017-04-13 07:09:07 -04:00
|
|
|
|
|
|
|
module WellKnown
|
2023-04-19 10:07:29 -04:00
|
|
|
class HostMetaController < ActionController::Base # rubocop:disable Rails/ApplicationController
|
2017-06-02 16:21:36 -04:00
|
|
|
include RoutingHelper
|
|
|
|
|
2017-04-13 07:09:07 -04:00
|
|
|
def show
|
|
|
|
@webfinger_template = "#{webfinger_url}?resource={uri}"
|
2019-07-08 06:03:45 -04:00
|
|
|
expires_in 3.days, public: true
|
2020-01-02 23:28:56 -05:00
|
|
|
render content_type: 'application/xrd+xml', formats: [:xml]
|
2017-04-13 07:09:07 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|