MCPcopy Create free account
hub / github.com/gogs/gogs / JSONSuccess

Method JSONSuccess

internal/context/context.go:128–130  ·  view source on GitHub ↗

JSONSuccess responses JSON with status http.StatusOK.

(data any)

Source from the content-addressed store, hash-verified

126
127// JSONSuccess responses JSON with status http.StatusOK.
128func (c *Context) JSONSuccess(data any) {
129 c.JSON(http.StatusOK, data)
130}
131
132// RawRedirect simply calls underlying Redirect method with no escape.
133func (c *Context) RawRedirect(location string, status ...int) {

Callers 15

DeleteEmailFunction · 0.80
DeleteSSHKeyFunction · 0.80
SettingsTwoFactorDisableFunction · 0.80
SettingsLeaveRepoFunction · 0.80
DeleteApplicationMethod · 0.80
TeamsActionFunction · 0.80
DeleteTeamFunction · 0.80
MembersActionFunction · 0.80
DeleteReleaseFunction · 0.80
DeleteWikiPagePostFunction · 0.80
UploadFileToServerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected