mirror of
https://github.com/kataras/iris.git
synced 2026-01-25 04:45:57 +00:00
examples: writing an API for the Apache Kafka: add a root handler for routes documentation to make navigation easier and add some other methods that may find them useful for request state and routes description
Former-commit-id: 3775aab2386051b23e127ccc9e3a6accdfdee6d0
This commit is contained in:
@@ -114,7 +114,7 @@ func (r Route) String() string {
|
||||
r.Method, r.Subdomain, r.Tmpl().Src)
|
||||
}
|
||||
|
||||
// Tmpl returns the path template, i
|
||||
// Tmpl returns the path template,
|
||||
// it contains the parsed template
|
||||
// for the route's path.
|
||||
// May contain zero named parameters.
|
||||
@@ -249,3 +249,11 @@ func (rd routeReadOnlyWrapper) Path() string {
|
||||
func (rd routeReadOnlyWrapper) Trace() string {
|
||||
return rd.Route.Trace()
|
||||
}
|
||||
|
||||
func (rd routeReadOnlyWrapper) Tmpl() macro.Template {
|
||||
return rd.Route.Tmpl()
|
||||
}
|
||||
|
||||
func (rd routeReadOnlyWrapper) MainHandlerName() string {
|
||||
return rd.Route.MainHandlerName
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user