Skip to content

Commit

Permalink
astrolabe: updates to use agnostic API helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Dec 17, 2024
1 parent 200f6a9 commit e0b4948
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 97 deletions.
5 changes: 3 additions & 2 deletions cmd/astrolabe/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"net/http"
"strings"

"github.com/bluesky-social/indigo/api/agnostic"
comatproto "github.com/bluesky-social/indigo/api/atproto"
_ "github.com/bluesky-social/indigo/api/bsky"
"github.com/bluesky-social/indigo/atproto/data"
Expand Down Expand Up @@ -161,7 +162,7 @@ func (srv *Server) WebRepoCollection(c echo.Context) error {

cursor := c.QueryParam("cursor")
// collection string, cursor string, limit int64, repo string, reverse bool, rkeyEnd string, rkeyStart string
resp, err := RepoListRecords(ctx, &xrpcc, collection.String(), cursor, 100, ident.DID.String(), false, "", "")
resp, err := agnostic.RepoListRecords(ctx, &xrpcc, collection.String(), cursor, 100, ident.DID.String(), false, "", "")
if err != nil {
return err
}
Expand Down Expand Up @@ -218,7 +219,7 @@ func (srv *Server) WebRepoRecord(c echo.Context) error {
xrpcc := xrpc.Client{
Host: ident.PDSEndpoint(),
}
resp, err := RepoGetRecord(ctx, &xrpcc, "", collection.String(), ident.DID.String(), rkey.String())
resp, err := agnostic.RepoGetRecord(ctx, &xrpcc, "", collection.String(), ident.DID.String(), rkey.String())
if err != nil {
return echo.NewHTTPError(400, fmt.Sprintf("failed to load record: %s", err))
}
Expand Down
42 changes: 0 additions & 42 deletions cmd/astrolabe/repogetRecord.go

This file was deleted.

53 changes: 0 additions & 53 deletions cmd/astrolabe/repolistRecords.go

This file was deleted.

0 comments on commit e0b4948

Please sign in to comment.