mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add devcontainer in the UI (#16800)
 Related to https://github.com/coder/coder/issues/16422 --------- Co-authored-by: Cian Johnston <cian@coder.com>
This commit is contained in:
co-authored by
Cian Johnston
parent
73057eb7bd
commit
861c4b140b
@@ -2374,6 +2374,18 @@ class ApiMethods {
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
getAgentContainers = async (agentId: string, labels?: string[]) => {
|
||||
const params = new URLSearchParams(
|
||||
labels?.map((label) => ["label", label]),
|
||||
);
|
||||
|
||||
const res =
|
||||
await this.axios.get<TypesGen.WorkspaceAgentListContainersResponse>(
|
||||
`/api/v2/workspaceagents/${agentId}/containers?${params.toString()}`,
|
||||
);
|
||||
return res.data;
|
||||
};
|
||||
}
|
||||
|
||||
// This is a hard coded CSRF token/cookie pair for local development. In prod,
|
||||
|
||||
Reference in New Issue
Block a user