+7
-3
src/views/pds.tsx
+7
-3
src/views/pds.tsx
···
29
setVersion((res.data as any).version);
30
};
31
32
const fetchRepos = async () => {
33
getVersion();
34
-
const describeRes = await rpc.get("com.atproto.server.describeServer");
35
-
if (!describeRes.ok) console.error(describeRes.data.error);
36
-
else setServerInfos(describeRes.data);
37
const res = await rpc.get("com.atproto.sync.listRepos", {
38
params: { limit: LIMIT, cursor: cursor() },
39
});
···
29
setVersion((res.data as any).version);
30
};
31
32
+
const describeServer = async () => {
33
+
const res = await rpc.get("com.atproto.server.describeServer");
34
+
if (!res.ok) console.error(res.data.error);
35
+
else setServerInfos(res.data);
36
+
};
37
+
38
const fetchRepos = async () => {
39
getVersion();
40
+
describeServer();
41
const res = await rpc.get("com.atproto.sync.listRepos", {
42
params: { limit: LIMIT, cursor: cursor() },
43
});