(c *gin.Context)
| 37 | } |
| 38 | |
| 39 | func (handler *NamespaceHandler) List(c *gin.Context) { |
| 40 | namespaces, err := handler.s.ListNamespace(c) |
| 41 | if err != nil { |
| 42 | helper.ResponseError(c, err) |
| 43 | return |
| 44 | } |
| 45 | helper.ResponseOK(c, gin.H{"namespaces": namespaces}) |
| 46 | } |
| 47 | |
| 48 | func (handler *NamespaceHandler) Exists(c *gin.Context) { |
| 49 | namespace := c.Param("namespace") |