feat(share pop-up): Post-Request-Prozess hinzugefügt.

This commit is contained in:
Developer 02
2024-10-09 15:03:54 +02:00
parent 25cd1601a6
commit 0eb5897185
3 changed files with 17 additions and 12 deletions

View File

@@ -14,7 +14,7 @@ class API {
}
static get SHARE_URL() {
return `/readonly`
return `/api/readonly`
}
static __XSRF_TOKEN
@@ -56,4 +56,4 @@ const redirect = (url) => window.location.href = url;
const redirRejected = () => redirect(API.REJECT_REDIR_URL);
const shareEnvelope = (receiverMail, dateValid) => createPost(API.SHARE_URL, { receiverMail: receiverMail, dateValid: dateValid });
const shareEnvelope = (receiverMail, dateValid) => createPost(API.SHARE_URL, { receiverMail: receiverMail, dateValid: dateValid }, Content.JSON);