mirror of
https://github.com/kataras/iris.git
synced 2025-12-30 00:07:04 +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:
@@ -42,6 +42,11 @@ type Application interface {
|
||||
// Look core/router/APIBuilder#GetRoute for more.
|
||||
GetRouteReadOnly(routeName string) RouteReadOnly
|
||||
|
||||
// GetRoutesReadOnly returns the registered "read-only" routes.
|
||||
//
|
||||
// Look core/router/APIBuilder#GetRoutes for more.
|
||||
GetRoutesReadOnly() []RouteReadOnly
|
||||
|
||||
// FireErrorCode executes an error http status code handler
|
||||
// based on the context's status code.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user