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

Method Applications

internal/route/user/setting.go:590–604  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

588}
589
590func (h *SettingsHandler) Applications() macaron.Handler {
591 return func(c *context.Context) {
592 c.Title("settings.applications")
593 c.PageIs("SettingsApplications")
594
595 tokens, err := h.store.ListAccessTokens(c.Req.Context(), c.User.ID)
596 if err != nil {
597 c.Errorf(err, "list access tokens")
598 return
599 }
600 c.Data["Tokens"] = tokens
601
602 c.Success(tmplUserSettingsApplications)
603 }
604}
605
606func (h *SettingsHandler) ApplicationsPost() macaron.Handler {
607 return func(c *context.Context, f form.NewAccessToken) {

Callers 1

runWebFunction · 0.95

Calls 5

TitleMethod · 0.80
PageIsMethod · 0.80
SuccessMethod · 0.80
ListAccessTokensMethod · 0.65
ErrorfMethod · 0.45

Tested by

no test coverage detected