1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 18:37:05 +00:00

add Route.ExcludeSitemap method to exclude a route from sitemap, also exclude the offline routes as requested

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-08-29 01:21:42 +03:00
parent 6f9a453160
commit 00684f9d2e
4 changed files with 22 additions and 2 deletions

View File

@@ -32,6 +32,10 @@ func newApp() *iris.Application {
app.Get("/this/{myparam}/should/not/be/listed", handler)
app.Get("/this-should-not-be-listed-offline", handler).SetStatusOffline()
// These should be excluded as well
app.Get("/about", handler).ExcludeSitemap()
app.Get("/offline", handler).SetStatusOffline()
return app
}