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

Use new api gateway

This commit is contained in:
Zhiyuan Zheng
2021-06-21 11:59:29 +02:00
parent f3abcf640c
commit 927e7df4e9
11 changed files with 137 additions and 51 deletions

View File

@ -1,12 +1,9 @@
import apiGeneral from '@api/general'
import apiTooot from '@api/tooot'
import { displayMessage } from '@components/Message'
import { NavigationContainerRef } from '@react-navigation/native'
import { Dispatch } from '@reduxjs/toolkit'
import {
disableAllPushes,
Instance,
PUSH_SERVER
} from '@utils/slices/instancesSlice'
import { disableAllPushes, Instance } from '@utils/slices/instancesSlice'
import * as Notifications from 'expo-notifications'
import { useEffect } from 'react'
import { TFunction } from 'react-i18next'
@ -34,10 +31,10 @@ const pushUseConnect = ({
})
).data
apiGeneral({
apiTooot({
method: 'post',
domain: PUSH_SERVER,
url: 'v1/connect',
service: 'push',
url: 'connect',
body: {
expoToken
},