mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
17 lines
328 B
TypeScript
17 lines
328 B
TypeScript
import http from '@/lib/http'
|
|
|
|
const settings = {
|
|
get() {
|
|
return http.get('/settings')
|
|
},
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
save(data: any) {
|
|
return http.post('/settings', data)
|
|
},
|
|
|
|
get_server_name() {
|
|
return http.get('/settings/server/name')
|
|
},
|
|
}
|
|
|
|
export default settings
|