@Summary Get current user subscription usage @Schemes @Description @Accept json @Produce json @Success 200 {object} object "subscription info" @Router /luma/subscription/usage [get]
(c *gin.Context)
| 150 | // @Success 200 {object} object "subscription info" |
| 151 | // @Router /luma/subscription/usage [get] |
| 152 | func Usage(c *gin.Context) { |
| 153 | res, err := getUsage() |
| 154 | if err != nil { |
| 155 | WrapperLumaError(c, err, http.StatusInternalServerError) |
| 156 | return |
| 157 | } |
| 158 | c.JSON(http.StatusOK, res) |
| 159 | } |
nothing calls this directly
no test coverage detected