mirror of
https://github.com/xfgryujk/blivechat.git
synced 2026-08-19 09:43:28 +08:00
12 lines
296 B
JavaScript
12 lines
296 B
JavaScript
import { apiClient as axios } from './base'
|
|
|
|
export async function getServerInfo() {
|
|
return (await axios.get('/api/server_info')).data
|
|
}
|
|
|
|
export async function uploadEmoticon(file) {
|
|
let body = new FormData()
|
|
body.set('file', file)
|
|
return (await axios.post('/api/emoticon', body)).data
|
|
}
|