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

Function isAPIPath

internal/context/auth.go:102–104  ·  view source on GitHub ↗
(url string)

Source from the content-addressed store, hash-verified

100}
101
102func isAPIPath(url string) bool {
103 return strings.HasPrefix(url, "/api/")
104}
105
106type AuthStore interface {
107 // GetAccessTokenBySHA1 returns the access token with given SHA1. It returns

Callers 2

ToggleFunction · 0.85
authenticatedUserIDFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected