From 2e1284512f6f302673874ef3c368bdc50735f2a6 Mon Sep 17 00:00:00 2001 From: Melissa Zhang Date: Mon, 6 Jul 2020 16:01:42 -0700 Subject: set up linking from Dash documents to annotation --- src/client/apis/hypothesis/HypothesisApiUtils.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client/apis') 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 -- cgit v1.2.3-70-g09d2