mirror of
https://github.com/Kugelschieber/marvinblum.git
synced 2026-01-18 06:40:27 +00:00
Added legal page.
This commit is contained in:
1
main.go
1
main.go
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user