diff options
Diffstat (limited to '')
-rw-r--r-- | http/server.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |