1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Using EAS update

This commit is contained in:
xmflsct
2022-08-16 22:39:54 +02:00
parent d0bdb08bbe
commit 70c90b6a47
15 changed files with 40 additions and 44 deletions

View File

@ -23,13 +23,13 @@ const apiGeneral = async <T = unknown>({
}: Params): Promise<{ body: T }> => {
console.log(
ctx.bgGreen.bold(' API general ') +
' ' +
domain +
' ' +
method +
ctx.green(' -> ') +
`/${url}` +
(params ? ctx.green(' -> ') : ''),
' ' +
domain +
' ' +
method +
ctx.green(' -> ') +
`/${url}` +
(params ? ctx.green(' -> ') : ''),
params ? params : ''
)
@ -44,7 +44,7 @@ const apiGeneral = async <T = unknown>({
body && body instanceof FormData
? 'multipart/form-data'
: 'application/json',
'User-Agent': `tooot/${Constants.manifest?.version}`,
'User-Agent': `tooot/${Constants.expoConfig?.version}`,
Accept: '*/*',
...headers
},

View File

@ -74,7 +74,7 @@ const apiInstance = async <T = unknown>({
body && body instanceof FormData
? 'multipart/form-data'
: 'application/json',
'User-Agent': `tooot/${Constants.manifest?.version}`,
'User-Agent': `tooot/${Constants.expoConfig?.version}`,
Accept: '*/*',
...headers,
...(token && {

View File

@ -50,7 +50,7 @@ const apiTooot = async <T = unknown>({
body && body instanceof FormData
? 'multipart/form-data'
: 'application/json',
'User-Agent': `tooot/${Constants.manifest?.version}`,
'User-Agent': `tooot/${Constants.expoConfig?.version}`,
Accept: '*/*',
...headers
},