MCPcopy Create free account
hub / github.com/TalkingData/owl / verifyAndInjectPanelID

Function verifyAndInjectPanelID

api/verify.go:61–67  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

59}
60
61func verifyAndInjectPanelID(c *gin.Context) {
62 panelID, err := strconv.Atoi(c.Param("panel_id"))
63 if err != nil {
64 c.AbortWithStatusJSON(http.StatusOK, gin.H{"code": http.StatusBadRequest})
65 }
66 c.Set("panel_id", panelID)
67}

Callers

nothing calls this directly

Calls 1

SetMethod · 0.80

Tested by

no test coverage detected