@@ -0,0 +1,14 @@
|
||||
package web
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// NotFound 404 页面:渲染 template/pages/404.html。
|
||||
func NotFound(c *gin.Context) {
|
||||
HTML(c, http.StatusNotFound, "404.html", gin.H{
|
||||
"title": "页面不存在 - 黄果短剧",
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user