From 6de1cd00cea3479a7a33418eebbc9399f77178c6 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sun, 18 Dec 2022 19:45:27 -0500 Subject: start of outbox --- registry/registry.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'registry') diff --git a/registry/registry.go b/registry/registry.go index 442e591..b12b773 100644 --- a/registry/registry.go +++ b/registry/registry.go @@ -33,6 +33,14 @@ func (r *Registry) Profile(name string) (map[string]interface{}, error) { return resources.RenderProfile(handler.handlerCfg.Name, r.cfg.Domain) } +func (r *Registry) Outbox(name string) (map[string]interface{}, error) { + handler := r.findByName(name) + if handler == nil { + return nil, nil + } + return resources.RenderOutbox(handler.handlerCfg.Name, r.cfg.Domain) +} + func (r *Registry) WebfingerResource(fqn string) (*resources.WebfingerResource, error) { handler := r.findByFQN(fqn) if handler == nil { -- cgit v1.2.3