From 5c3abbe463dc0c3d8482f76867ea6c4eeb2fdad5 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Fri, 3 Mar 2023 21:09:12 +0100 Subject: [PATCH] added /matches to sitemap --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 7f8c432..34c5bca 100644 --- a/main.go +++ b/main.go @@ -1195,6 +1195,9 @@ func main() { // populate sitemap siteMap = &gositemap.SiteMap{BaseURL: "csgow.tf"} + freq := gositemap.Hourly + siteMap.AddURL("/matches", nil, &freq, nil) + players, err := db.Player.Query().IDs(context.Background()) if err != nil { log.Panicf("error setting up SiteMap: %v", err)