Skip to content

Commit

Permalink
pds: re-add com.atproto.server.getAccountsConfig stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Mar 28, 2023
1 parent 5e59303 commit af2577b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pds/stubs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit af2577b

Please sign in to comment.