(c *gin.Context)
| 60 | } |
| 61 | |
| 62 | func (cr *configRoute) savePathMeta(c *gin.Context) { |
| 63 | path := utils.CleanPath(c.Param("path")) |
| 64 | data := types.PathMeta{} |
| 65 | if e := c.Bind(&data); e != nil { |
| 66 | _ = c.Error(e) |
| 67 | return |
| 68 | } |
| 69 | data.Path = &path |
| 70 | if e := cr.pathMetaDAO.Set(data); e != nil { |
| 71 | _ = c.Error(e) |
| 72 | return |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | func (cr *configRoute) deletePathMeta(c *gin.Context) { |
| 77 | path := utils.CleanPath(c.Param("path")) |