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

Basic auto suggestion is working

This commit is contained in:
Zhiyuan Zheng
2020-11-09 01:04:47 +01:00
parent c417262528
commit d8d8a6c1fa
10 changed files with 161 additions and 4184 deletions

View File

@ -9,7 +9,7 @@ const client = async ({
query,
body
}: {
version: 'v1' | 'v2'
version?: 'v1' | 'v2'
method: 'get' | 'post' | 'delete'
instance: 'local' | 'remote'
endpoint: string
@ -34,8 +34,8 @@ const client = async ({
},
...(body && { json: body })
})
} catch {
return Promise.reject('ky error')
} catch (error) {
return Promise.reject('ky error: ' + error)
}
if (response.ok) {