mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-31 11:52:10 +00:00
Add sitemap support (#18407)
This commit is contained in:
parent
97bfabc745
commit
95383b7a16
9 changed files with 257 additions and 2 deletions
|
@ -294,6 +294,7 @@ func RegisterRoutes(m *web.Route) {
|
|||
// Routers.
|
||||
// for health check
|
||||
m.Get("/", Home)
|
||||
m.Get("/sitemap.xml", ignExploreSignIn, HomeSitemap)
|
||||
m.Group("/.well-known", func() {
|
||||
m.Get("/openid-configuration", auth.OIDCWellKnown)
|
||||
m.Group("", func() {
|
||||
|
@ -310,7 +311,9 @@ func RegisterRoutes(m *web.Route) {
|
|||
ctx.Redirect(setting.AppSubURL + "/explore/repos")
|
||||
})
|
||||
m.Get("/repos", explore.Repos)
|
||||
m.Get("/repos/sitemap-{idx}.xml", explore.Repos)
|
||||
m.Get("/users", explore.Users)
|
||||
m.Get("/users/sitemap-{idx}.xml", explore.Users)
|
||||
m.Get("/organizations", explore.Organizations)
|
||||
m.Get("/code", explore.Code)
|
||||
m.Get("/topics/search", explore.TopicSearch)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue