hanayo/errors.go

17 lines
314 B
Go
Raw Normal View History

2019-02-23 13:29:15 +00:00
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",
})
}