add key to support wsrx
This commit is contained in:
@@ -56,13 +56,13 @@ func (h *Handler) createWorkspace(c *gin.Context) {
|
||||
Namespace: Namespace,
|
||||
}
|
||||
|
||||
err := k8s.CreateWorkspace(k8sReq)
|
||||
keyword, err := k8s.CreateWorkspace(k8sReq)
|
||||
if err != nil {
|
||||
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
|
||||
return
|
||||
}
|
||||
|
||||
c.JSON(http.StatusAccepted, gin.H{"status": "creating", "workspaceId": req.WorkspaceID})
|
||||
c.JSON(http.StatusAccepted, gin.H{"status": "creating", "workspaceId": req.WorkspaceID, "keyword": keyword})
|
||||
}
|
||||
|
||||
func (h *Handler) deleteWorkspace(c *gin.Context) {
|
||||
|
||||
Reference in New Issue
Block a user