Merge pull request #32 from fossyy/staging

Add sitemap.xml
This commit is contained in:
2024-07-05 15:08:26 +07:00
committed by GitHub
2 changed files with 35 additions and 0 deletions

31
public/sitemap.xml Normal file
View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>https://filekeeper.my.id/</loc>
<lastmod>2024-07-05T07:57:35+00:00</lastmod>
<priority>1.00</priority>
</url>
<url>
<loc>https://filekeeper.my.id/signup</loc>
<lastmod>2024-07-05T07:57:35+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://filekeeper.my.id/signin</loc>
<lastmod>2024-07-05T07:57:35+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://filekeeper.my.id/forgot-password</loc>
<lastmod>2024-07-05T07:57:35+00:00</lastmod>
<priority>0.64</priority>
</url>
</urlset>

View File

@ -133,6 +133,10 @@ func SetupRoutes() *http.ServeMux {
http.ServeFile(w, r, "public/robots.txt") 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) { handler.HandleFunc("GET /favicon.ico", func(w http.ResponseWriter, r *http.Request) {
http.ServeFile(w, r, "public/favicon.ico") http.ServeFile(w, r, "public/favicon.ico")
}) })