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.

54 lines
838 B

import service from '~/utils/request'
export const updateConfig = (data) => {
return service({
url: '/api/v1/config',
method: 'put',
data,
})
}
export const updateSitemap = (data) => {
return service({
url: '/api/v1/sitemap',
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',
})
}
export const getEnvs = () => {
return service({
url: '/api/v1/envs',
method: 'get',
})
}
export const getDevice = () => {
return service({
url: '/api/v1/device',
method: 'get',
})
}