mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-20 17:57:54 +00:00
17 lines
278 B
Go
17 lines
278 B
Go
package handler
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
jwt "go-admin/pkg/jwtauth"
|
|
"log"
|
|
)
|
|
|
|
func NoFound(c *gin.Context) {
|
|
claims := jwt.ExtractClaims(c)
|
|
log.Printf("NoRoute claims: %#v\n", claims)
|
|
c.JSON(404, gin.H{
|
|
"code": "NOT_FOUND",
|
|
"message": "not found",
|
|
})
|
|
}
|