mirror of
https://github.com/ConvoyPanel/panel.git
synced 2026-07-02 18:04:37 +08:00
15 lines
395 B
TypeScript
15 lines
395 B
TypeScript
import http from '@/api/http'
|
|
|
|
export interface SecuritySettings {
|
|
sshKeys: string
|
|
}
|
|
|
|
const rawDataToSecurityObject = (data: any): SecuritySettings => ({
|
|
sshKeys: data.ssh_keys
|
|
})
|
|
|
|
export default async (uuid: string): Promise<SecuritySettings> => {
|
|
const { data: { data } } = await http.get(`/api/client/servers/${uuid}/settings/security`)
|
|
|
|
return rawDataToSecurityObject(data)
|
|
} |