feat: consolidar desenvolvimentos do portal InvestMoz
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user