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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user