mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add port sharing frontend (#12119)
This commit is contained in:
@@ -156,7 +156,7 @@ func (api *API) deleteWorkspaceAgentPortShare(rw http.ResponseWriter, r *http.Re
|
||||
}
|
||||
|
||||
func convertPortShares(shares []database.WorkspaceAgentPortShare) []codersdk.WorkspaceAgentPortShare {
|
||||
var converted []codersdk.WorkspaceAgentPortShare
|
||||
converted := []codersdk.WorkspaceAgentPortShare{}
|
||||
for _, share := range shares {
|
||||
converted = append(converted, convertPortShare(share))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user