1
0
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:
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

@@ -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()