From e57d3752e493d11e618b0864436b152166df2bb1 Mon Sep 17 00:00:00 2001 From: bryan newbold Date: Tue, 28 Mar 2023 10:34:54 -0700 Subject: [PATCH] pds: re-add com.atproto.server.getAccountsConfig stubs --- pds/stubs.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pds/stubs.go b/pds/stubs.go index 74b630c29..2e7219b42 100644 --- a/pds/stubs.go +++ b/pds/stubs.go @@ -487,6 +487,7 @@ func (s *Server) RegisterHandlersComAtproto(e *echo.Echo) error { e.POST("/xrpc/com.atproto.server.deleteSession", s.HandleComAtprotoServerDeleteSession) e.GET("/xrpc/com.atproto.server.describeServer", s.HandleComAtprotoServerDescribeServer) e.GET("/xrpc/com.atproto.server.getSession", s.HandleComAtprotoServerGetSession) + e.GET("/xrpc/com.atproto.server.getAccountsConfig", s.HandleComAtprotoServerGetAccountsConfig) e.POST("/xrpc/com.atproto.server.refreshSession", s.HandleComAtprotoServerRefreshSession) e.POST("/xrpc/com.atproto.server.requestAccountDelete", s.HandleComAtprotoServerRequestAccountDelete) e.POST("/xrpc/com.atproto.server.requestPasswordReset", s.HandleComAtprotoServerRequestPasswordReset) @@ -930,6 +931,19 @@ func (s *Server) HandleComAtprotoServerCreateAccount(c echo.Context) error { return c.JSON(200, out) } +func (s *Server) HandleComAtprotoServerGetAccountsConfig(c echo.Context) error { + ctx, span := otel.Tracer("server").Start(c.Request().Context(), "HandleComAtprotoServerGetAccountsConfig") + defer span.End() + var out *comatprototypes.ServerGetAccountsConfig_Output + var handleErr error + // func (s *Server) handleComAtprotoServerGetAccountsConfig(ctx context.Context) (*comatprototypes.ServerGetAccountsConfig_Output, error) + out, handleErr = s.handleComAtprotoServerGetAccountsConfig(ctx) + if handleErr != nil { + return handleErr + } + return c.JSON(200, out) +} + func (s *Server) HandleComAtprotoServerCreateInviteCode(c echo.Context) error { ctx, span := otel.Tracer("server").Start(c.Request().Context(), "HandleComAtprotoServerCreateInviteCode") defer span.End()