forked from AkkomaGang/admin-fe
Update Import from FS and ListRemotePacks APIs
This commit is contained in:
parent
34f14c93f7
commit
5805792211
1 changed files with 5 additions and 6 deletions
|
@ -25,8 +25,8 @@ export async function reloadEmoji(host, token) {
|
|||
export async function importFromFS(host, token) {
|
||||
return await request({
|
||||
baseURL: baseName(host),
|
||||
url: '/api/pleroma/emoji/packs/import_from_fs',
|
||||
method: 'post',
|
||||
url: '/api/pleroma/emoji/packs/import',
|
||||
method: 'get',
|
||||
headers: authHeaders(token)
|
||||
})
|
||||
}
|
||||
|
@ -51,10 +51,9 @@ export async function listPacks(host) {
|
|||
export async function listRemotePacks(host, token, instance) {
|
||||
return await request({
|
||||
baseURL: baseName(host),
|
||||
url: `/api/pleroma/emoji/packs/list_from`,
|
||||
method: 'post',
|
||||
headers: authHeaders(token),
|
||||
data: { instance_address: baseName(instance) }
|
||||
url: `/api/pleroma/emoji/packs/remote?url=${baseName(instance)}`,
|
||||
method: 'get',
|
||||
headers: authHeaders(token)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue