2018-02-28 08:18:07 +01:00
|
|
|
import { basename } from './utils'
|
2018-06-13 16:38:36 +02:00
|
|
|
import { DEFAULT_TIMEOUT, get } from '../_utils/ajax'
|
2018-02-28 08:18:07 +01:00
|
|
|
|
|
|
|
export async function getCustomEmoji (instanceName) {
|
|
|
|
let url = `${basename(instanceName)}/api/v1/custom_emojis`
|
2018-06-13 16:38:36 +02:00
|
|
|
return get(url, null, {timeout: DEFAULT_TIMEOUT})
|
2018-02-28 08:18:07 +01:00
|
|
|
}
|