feat: consolidar desenvolvimentos do portal InvestMoz

This commit is contained in:
2026-11-03 23:32:32 +02:00
parent 1da273f1f3
commit 36c8cadb49
345 changed files with 110714 additions and 2799 deletions
+12 -2
View File
@@ -35,10 +35,20 @@ export async function profileJson(
credentials: 'same-origin',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
...(typeof FormData !== 'undefined' && data instanceof FormData
? {}
: { 'Content-Type': 'application/json' }),
...(method === 'GET' ? {} : { 'X-XSRF-TOKEN': token }),
},
...(method === 'GET' ? {} : { body: JSON.stringify(data) }),
...(method === 'GET'
? {}
: {
body:
typeof FormData !== 'undefined' &&
data instanceof FormData
? data
: JSON.stringify(data),
}),
});
const result = await response.json().catch(() => null);
const reauthenticate =