diff --git a/lib/didkit/services.rb b/lib/didkit/services.rb index 8245834..060d65b 100644 --- a/lib/didkit/services.rb +++ b/lib/didkit/services.rb @@ -11,5 +11,13 @@ def pds_endpoint def labeler_endpoint @labeler_endpoint ||= get_service('atproto_labeler', 'AtprotoLabeler')&.endpoint end + + def pds_host + pds_endpoint&.then { |x| URI(x).host } + end + + def labeler_host + labeler_endpoint&.then { |x| URI(x).host } + end end end