Add sitemap.xml

This commit is contained in:
2024-07-05 15:03:55 +07:00
parent f63c4f7928
commit 163d58ecfb
2 changed files with 35 additions and 0 deletions

View File

@ -133,6 +133,10 @@ func SetupRoutes() *http.ServeMux {
http.ServeFile(w, r, "public/robots.txt")
})
handler.HandleFunc("GET /sitemap.xml", func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "public/sitemap.xml")
})
handler.HandleFunc("GET /favicon.ico", func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "public/favicon.ico")
})