Files
go-admin/handler/nofound.go
T
2020-07-27 22:37:50 +08:00

18 lines
294 B
Go

package handler
import (
"github.com/gin-gonic/gin"
jwt "go-admin/pkg/jwtauth"
"log"
"net/http"
)
func NoFound(c *gin.Context) {
claims := jwt.ExtractClaims(c)
log.Printf("NoRoute claims: %#v\n", claims)
c.JSON(http.StatusOK, gin.H{
"code": "404",
"message": "not found",
})
}