MCPcopy Create free account
hub / github.com/LumaAI-API/Luma-API / Usage

Function Usage

api.go:152–159  ·  view source on GitHub ↗

@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)

Source from the content-addressed store, hash-verified

150// @Success 200 {object} object "subscription info"
151// @Router /luma/subscription/usage [get]
152func 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}

Callers

nothing calls this directly

Calls 2

getUsageFunction · 0.85
WrapperLumaErrorFunction · 0.85

Tested by

no test coverage detected