tangled
alpha
login
or
join now
vielle.dev
/
pdsls
forked from
pds.ls/pdsls
0
fork
atom
atproto explorer
0
fork
atom
overview
issues
pulls
pipelines
refactor describeServer
handle.invalid
5 months ago
51b804ea
ede72b69
verified
This commit was signed with the committer's
known signature
.
handle.invalid
SSH Key Fingerprint:
SHA256:mBrT4x0JdzLpbVR95g1hjI1aaErfC02kmLRkPXwsYCk=
+7
-3
1 changed file
expand all
collapse all
unified
split
src
views
pds.tsx
+7
-3
src/views/pds.tsx
···
29
29
setVersion((res.data as any).version);
30
30
};
31
31
32
32
+
const describeServer = async () => {
33
33
+
const res = await rpc.get("com.atproto.server.describeServer");
34
34
+
if (!res.ok) console.error(res.data.error);
35
35
+
else setServerInfos(res.data);
36
36
+
};
37
37
+
32
38
const fetchRepos = async () => {
33
39
getVersion();
34
34
-
const describeRes = await rpc.get("com.atproto.server.describeServer");
35
35
-
if (!describeRes.ok) console.error(describeRes.data.error);
36
36
-
else setServerInfos(describeRes.data);
40
40
+
describeServer();
37
41
const res = await rpc.get("com.atproto.sync.listRepos", {
38
42
params: { limit: LIMIT, cursor: cursor() },
39
43
});