We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8e923c commit 46ae04bCopy full SHA for 46ae04b
echo.go
@@ -325,11 +325,16 @@ func (e *Echo) NewContext(r *http.Request, w http.ResponseWriter) Context {
325
}
326
327
328
-// Router returns router.
+// Router returns the default router.
329
func (e *Echo) Router() *Router {
330
return e.router
331
332
333
+// Routers returns the map of host => router.
334
+func (e *Echo) Routers() map[string]*Router {
335
+ return e.routers
336
+}
337
+
338
// DefaultHTTPErrorHandler is the default HTTP error handler. It sends a JSON response
339
// with status code.
340
func (e *Echo) DefaultHTTPErrorHandler(err error, c Context) {
0 commit comments