From 163d58ecfbc4751d578cc24fe7678b9442ceb484 Mon Sep 17 00:00:00 2001 From: Bagas Aulia Rezki Date: Fri, 5 Jul 2024 15:03:55 +0700 Subject: [PATCH] Add sitemap.xml --- public/sitemap.xml | 31 +++++++++++++++++++++++++++++++ routes/routes.go | 4 ++++ 2 files changed, 35 insertions(+) create mode 100644 public/sitemap.xml 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") })