diff --git a/public/react/src/common/UrlTool.js b/public/react/src/common/UrlTool.js index c4ea468bf..3953f1f34 100644 --- a/public/react/src/common/UrlTool.js +++ b/public/react/src/common/UrlTool.js @@ -46,6 +46,9 @@ export function getUrl2(path, goTest) { export function getUploadActionUrl(path, goTest) { return `${getUrl()}/api/attachments.json${isDev ? `?debug=${window._debugType || 'admin'}` : ''}` } +export function getUploadActionUrlOfAuth(id) { + return `${getUrl()}/api/users/accounts/${id}/auth_attachments.json${isDev ? `?debug=${window._debugType || 'admin'}` : ''}` +} export function test(path) { return `${path}`;