add:not found page

This commit is contained in:
kokopi-dev
2026-03-09 01:19:27 +09:00
parent cd593219f7
commit c5c49f07e9
4 changed files with 33 additions and 0 deletions

13
handlers/error.go Normal file
View File

@@ -0,0 +1,13 @@
package handlers
import (
"net/http"
"personal-site/pages"
"github.com/gin-gonic/gin"
)
func NotFoundHandler(c *gin.Context) {
c.Status(http.StatusNotFound)
pages.ErrorPage().Render(c.Request.Context(), c.Writer)
}