misc_pterodactyl-panel/resources/scripts/api/server/setSelectedDockerImage.ts

5 lines
204 B
TypeScript

import http from '@/api/http';
export default async (uuid: string, image: string): Promise<void> => {
await http.put(`/api/client/servers/${uuid}/settings/docker-image`, { docker_image: image });
};