From 2ee94a66d89de9eb0461f250251af7776aef9976 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Sun, 18 Dec 2022 19:29:19 -0500 Subject: cleanup --- http/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'http') diff --git a/http/server.go b/http/server.go index d8560bb..5e6f652 100644 --- a/http/server.go +++ b/http/server.go @@ -25,7 +25,7 @@ func (s *Server) Start(zapWriter io.Writer) { // Webfinger router.GET("/.well-known/webfinger", func(c *gin.Context) { resourceParam := c.Query("resource") - resource := s.registry.LookupResource(resourceParam) + resource, _ := s.registry.WebfingerResource(resourceParam) if resource != nil { c.JSON(http.StatusOK, resource) } else { @@ -37,7 +37,7 @@ func (s *Server) Start(zapWriter io.Writer) { // "User" endpoint router.GET("/actors/:actor", func(c *gin.Context) { actorParam := c.Param("actor") - resource, _ := s.registry.LookupByName(actorParam) + resource, _ := s.registry.Profile(actorParam) if resource != nil { c.JSON(http.StatusOK, resource) } else { -- cgit v1.2.3