added way for users to share all fields

This commit is contained in:
csawatzky 2025-08-27 16:06:59 -06:00
parent 4db21a3d0c
commit 3802691977
4 changed files with 173 additions and 24 deletions

View file

@ -103,7 +103,7 @@ export default function FieldProvider(props: PropsWithChildren<Props>) {
};
const shareAll = (email: string, permissions: pond.Permission[]) => {
let url = pondURL("/fields/shareAll")
let url = pondURL("/shareAllFields")
if (as) url = url + "?as=" + as
return new Promise<AxiosResponse>((resolve, reject) => {
post(url, {
@ -118,7 +118,7 @@ export default function FieldProvider(props: PropsWithChildren<Props>) {
}
const shareAllByKey = (key: string, permissions: pond.Permission[]) => {
let url = pondURL("/fields/shareAllByKey")
let url = pondURL("/shareAllFieldsByKey")
if (as) url = url + "?as=" + as
return new Promise<AxiosResponse>((resolve, reject) => {
post(url, {