aboutsummaryrefslogtreecommitdiff
path: root/src/client/apis/hypothesis/HypothesisApiUtils.ts
diff options
context:
space:
mode:
authorMelissa Zhang <mzhang19096@gmail.com>2020-07-06 16:01:42 -0700
committerMelissa Zhang <mzhang19096@gmail.com>2020-07-06 16:01:42 -0700
commit2e1284512f6f302673874ef3c368bdc50735f2a6 (patch)
treec6c875587ccc822fa111c29bce23ffb833613cda /src/client/apis/hypothesis/HypothesisApiUtils.ts
parent15adf17efa078464643f8bcfd0f8c0b8afea8424 (diff)
set up linking from Dash documents to annotation
Diffstat (limited to 'src/client/apis/hypothesis/HypothesisApiUtils.ts')
-rw-r--r--src/client/apis/hypothesis/HypothesisApiUtils.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/apis/hypothesis/HypothesisApiUtils.ts b/src/client/apis/hypothesis/HypothesisApiUtils.ts
index 714c9cdaf..dc7e1f988 100644
--- a/src/client/apis/hypothesis/HypothesisApiUtils.ts
+++ b/src/client/apis/hypothesis/HypothesisApiUtils.ts
@@ -10,4 +10,8 @@ export namespace Hypothesis {
throw new Error('DASH: Error in GET request');
}
};
+
+ export const makeAnnotationUrl = (annotationId: string, baseUrl: string) => {
+ return `https://hyp.is/${annotationId}/${baseUrl}`;
+ };
} \ No newline at end of file