Verified Commit 8175b885 authored by Jae's avatar Jae
Browse files

Add 404 route

parent c5a34746
Pipeline #53 passed with stage
in 39 seconds
......@@ -289,5 +289,12 @@ func main() {
})
})
// 404
r.NoRoute(func(c *gin.Context) {
c.HTML(http.StatusNotFound, "home/404.tmpl", gin.H{
"title": "404",
})
})
r.Run(":2021")
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment