Added legal page.

This commit is contained in:
2020-06-12 19:52:06 +02:00
parent 05cfadeaa7
commit 71ca09427f
3 changed files with 18 additions and 0 deletions

View File

@@ -93,6 +93,7 @@ func serveTemplate(name string) http.HandlerFunc {
func setupRouter() *mux.Router {
router := mux.NewRouter()
router.PathPrefix(staticDirPrefix).Handler(http.StripPrefix(staticDirPrefix, gziphandler.GzipHandler(http.FileServer(http.Dir(staticDir)))))
router.Handle("/legal", serveTemplate("legal.html"))
router.Handle("/blog", serveTemplate("blog.html"))
router.Handle("/", serveTemplate("about.html"))
router.NotFoundHandler = serveTemplate("notfound.html")