diff --git a/frontend/src/api/share.js b/frontend/src/api/share.js index 1ac4473a..eba4673e 100644 --- a/frontend/src/api/share.js +++ b/frontend/src/api/share.js @@ -34,3 +34,6 @@ export async function create(url, password = "", expires = "", unit = "hours") { export function getShareURL(share) { return createURL("share/" + share.hash, {}, false); } +export function getViewURL(share) { + return createURL("api/public/view/" + share.hash + "/index.html", {}, false); +} diff --git a/frontend/src/components/prompts/Share.vue b/frontend/src/components/prompts/Share.vue index e5d6c97d..539e11bf 100644 --- a/frontend/src/components/prompts/Share.vue +++ b/frontend/src/components/prompts/Share.vue @@ -32,6 +32,16 @@ content_paste + + +