diff options
author | Melissa Zhang <mzhang19096@gmail.com> | 2020-07-06 16:01:42 -0700 |
---|---|---|
committer | Melissa Zhang <mzhang19096@gmail.com> | 2020-07-06 16:01:42 -0700 |
commit | 2e1284512f6f302673874ef3c368bdc50735f2a6 (patch) | |
tree | c6c875587ccc822fa111c29bce23ffb833613cda /src/client/apis/hypothesis/HypothesisApiUtils.ts | |
parent | 15adf17efa078464643f8bcfd0f8c0b8afea8424 (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.ts | 4 |
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 |