mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Main updates
This commit is contained in:
@ -28,7 +28,7 @@ const apiTooot = async <T = unknown>({
|
||||
body,
|
||||
sentry = false
|
||||
}: Params): Promise<{ body: T }> => {
|
||||
const key = Constants.manifest.extra?.toootApiKey
|
||||
const key = Constants.manifest?.extra?.toootApiKey
|
||||
|
||||
console.log(
|
||||
ctx.bgGreen.bold(' API tooot ') +
|
||||
@ -49,7 +49,7 @@ const apiTooot = async <T = unknown>({
|
||||
headers: {
|
||||
...(key && { 'x-tooot-key': key }),
|
||||
'Content-Type': 'application/json',
|
||||
'User-Agent': `tooot/${Constants.manifest.version}`,
|
||||
'User-Agent': `tooot/${Constants.manifest?.version}`,
|
||||
Accept: '*/*',
|
||||
...headers
|
||||
},
|
||||
|
Reference in New Issue
Block a user