mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Try out new api services
This commit is contained in:
@ -36,9 +36,9 @@ const queryFunction = async ({ queryKey }: { queryKey: QueryKeyTranslate }) => {
|
||||
|
||||
const res = await apiTooot<Translations>({
|
||||
method: 'get',
|
||||
service: 'translate',
|
||||
url: `source/${uriEncoded}/target/${target}`,
|
||||
headers: { original }
|
||||
url: '/translate',
|
||||
headers: { original },
|
||||
body: { source, target, text }
|
||||
})
|
||||
haptics('Light')
|
||||
return res.body
|
||||
|
Reference in New Issue
Block a user