MCPcopy
hub / github.com/appleboy/gin-jwt / handleNoRoute

Function handleNoRoute

_example/basic/server.go:185–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

183}
184
185func handleNoRoute() func(c *gin.Context) {
186 return func(c *gin.Context) {
187 c.JSON(404, gin.H{"code": "PAGE_NOT_FOUND", "message": "Page not found"})
188 }
189}
190
191func helloHandler(c *gin.Context) {
192 claims := jwt.ExtractClaims(c)

Callers 1

registerRouteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…