hanayo/errors.go
2019-02-23 13:29:15 +00:00

17 lines
314 B
Go

package main
import "github.com/gin-gonic/gin"
func notFound(c *gin.Context) {
resp(c, 404, "not_found.html", &baseTemplateData{
TitleBar: "Not Found",
KyutGrill: "not_found.jpg",
})
}
func resp500(c *gin.Context) {
resp(c, 500, "500.html", &baseTemplateData{
TitleBar: "Internal Server Error",
})
}