diff --git a/public/sitemap.xml b/public/sitemap.xml new file mode 100644 index 0000000..282e56b --- /dev/null +++ b/public/sitemap.xml @@ -0,0 +1,31 @@ + + + + + + https://filekeeper.my.id/ + 2024-07-05T07:57:35+00:00 + 1.00 + + + https://filekeeper.my.id/signup + 2024-07-05T07:57:35+00:00 + 0.80 + + + https://filekeeper.my.id/signin + 2024-07-05T07:57:35+00:00 + 0.80 + + + https://filekeeper.my.id/forgot-password + 2024-07-05T07:57:35+00:00 + 0.64 + + + + \ No newline at end of file diff --git a/routes/routes.go b/routes/routes.go index 6ff4877..85eecd4 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -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") })