mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 09:57:01 +00:00
add Route.ExcludeSitemap method to exclude a route from sitemap, also exclude the offline routes as requested
This commit is contained in:
@@ -43,7 +43,7 @@ func getSourceFileLine(ctrlType reflect.Type, m reflect.Method) (string, int) {
|
||||
// }
|
||||
// but BaseCtrl has not the method, *BaseCtrl does:
|
||||
// (c *BaseCtrl) HandleHTTPError(...)
|
||||
// so we are creating a new temporarly value ptr of that type
|
||||
// so we are creating a new temporary value ptr of that type
|
||||
// and searching inside it for the method instead.
|
||||
typ = reflect.New(typ).Type()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user