MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / ApiError

Function ApiError

common/gin.go:91–96  ·  view source on GitHub ↗
(c *gin.Context, err error)

Source from the content-addressed store, hash-verified

89}
90
91func ApiError(c *gin.Context, err error) {
92 c.JSON(http.StatusOK, gin.H{
93 "success": false,
94 "message": err.Error(),
95 })
96}
97
98func ApiErrorMsg(c *gin.Context, msg string) {
99 c.JSON(http.StatusOK, gin.H{

Callers 15

ImportChannelsFunction · 0.92
ExportChannelsFunction · 0.92
GetChannelStatisticsFunction · 0.92
GetTokenStatisticsFunction · 0.92
GetUserStatisticsFunction · 0.92
GetAllQuotaDatesFunction · 0.92
GetUserQuotaDatesFunction · 0.92
SearchTokenByTokenFunction · 0.92
GitHubOAuthFunction · 0.92
GitHubBindFunction · 0.92
GenerateOAuthCodeFunction · 0.92
OidcAuthFunction · 0.92

Calls 1

ErrorMethod · 0.80

Tested by

no test coverage detected