mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-20 17:57:54 +00:00
18 lines
294 B
Go
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",
|
|
})
|
|
}
|