added a 404 to bad blog posts

This commit is contained in:
rawleyIfowler
2022-02-23 19:24:31 -06:00
parent 4f9fcdc898
commit 8e389c7a7f
5 changed files with 26 additions and 14 deletions

View File

@@ -27,8 +27,9 @@ var dsn string
func main() {
router = gin.Default()
router.Use(gin.Recovery())
// This needs to change because of RCCTL in OpenBSD, not sure if you can use a ksh variable as path in Gin but i'll test
router.LoadHTMLGlob("templates/*.tmpl")
bootstrap.InitializeRoutes(router)
router.Run()
router.Run(":8080")
}