9 lines
No EOL
238 B
TypeScript
9 lines
No EOL
238 B
TypeScript
import http from '@/api/http'
|
|
|
|
export type PowerAction = 'start' | 'shutdown' | 'kill' | 'restart'
|
|
|
|
export default (uuid: string, state: PowerAction) => {
|
|
return http.post(`/api/client/servers/${uuid}/status`, {
|
|
state
|
|
})
|
|
} |