mirror of
https://github.com/ConvoyPanel/panel.git
synced 2026-06-11 15:06:02 +08:00
15 lines
334 B
TypeScript
15 lines
334 B
TypeScript
import http from '@/api/http'
|
|
|
|
export interface NetworkSettings {
|
|
nameservers: string[]
|
|
}
|
|
|
|
const getNetworkSettings = async (uuid: string): Promise<NetworkSettings> => {
|
|
const {
|
|
data: { data },
|
|
} = await http.get(`/api/client/servers/${uuid}/settings/network`)
|
|
|
|
return data
|
|
}
|
|
|
|
export default getNetworkSettings |