chore: clean up unused files and empty code blocks

This commit is contained in:
Wikid82
2025-11-26 01:12:52 +00:00
parent 4f03021c9c
commit 56903b0e06
14 changed files with 174 additions and 46 deletions

View File

@@ -18,8 +18,11 @@ export interface DockerContainer {
}
export const dockerApi = {
listContainers: async (host?: string): Promise<DockerContainer[]> => {
const params = host ? { host } : undefined
listContainers: async (host?: string, serverId?: string): Promise<DockerContainer[]> => {
const params: Record<string, string> = {}
if (host) params.host = host
if (serverId) params.server_id = serverId
const response = await client.get<DockerContainer[]>('/docker/containers', { params })
return response.data
},