Users can specify anchors address in ENS

Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
Alexis Sellier
2021-10-11 18:42:33 +02:00
parent 08d7ee6a29
commit 18b28010bb
11 changed files with 102 additions and 41 deletions
+4 -2
View File
@@ -107,13 +107,15 @@ export async function getReadme(
}
export function path(
opts: { urn: string; org?: string; commit?: string; path?: string }
opts: { urn: string; org?: string; user?: string; commit?: string; path?: string }
): string {
const { urn, org, commit, path } = opts;
const { urn, org, user, commit, path } = opts;
const result = [];
if (org) {
result.push("orgs", org);
} else if (user) {
result.push("users", user);
}
result.push("projects", urn);