Skip to content

Commit

Permalink
feat: Adding route tag for sitemap
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Jan 7, 2024
1 parent 4c82905 commit 1722d9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/fibr/renderer.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func (s Service) TemplateFunc(w http.ResponseWriter, r *http.Request) (renderer.
}

if r.URL.Path == "/sitemap.xml" {
SetRouteTag(r.Context(), "/sitemap.xml")
return renderer.NewPage("sitemap", http.StatusOK, nil), nil
}

Expand Down

0 comments on commit 1722d9b

Please sign in to comment.