You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
505 B

import service from '~/utils/request'
export const updateConfig = (data) => {
return service({
url: '/api/v1/config',
method: 'put',
data,
})
}
export const listConfig = (params) => {
return service({
url: '/api/v1/config/list',
method: 'get',
params,
})
}
export const getSettings = () => {
return service({
url: '/api/v1/settings',
method: 'get',
})
}
export const getStats = () => {
return service({
url: '/api/v1/stats',
method: 'get',
})
}