mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 13:53:45 +02:00
Support updating docker image for a server from the frontend
This commit is contained in:
5
resources/scripts/api/server/setSelectedDockerImage.ts
Normal file
5
resources/scripts/api/server/setSelectedDockerImage.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
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 });
|
||||
};
|
||||
Reference in New Issue
Block a user