mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 04:17:03 +00:00
a bit linting and some tests are online again
Former-commit-id: bd5463a169a36b078dba1c1b6e7dd3ffbd627617
This commit is contained in:
@@ -91,6 +91,11 @@ func (router *Router) Downgrade(newMainHandler http.HandlerFunc) {
|
||||
router.mu.Unlock()
|
||||
}
|
||||
|
||||
// Downgraded returns true if this router is downgraded.
|
||||
func (router *Router) Downgraded() bool {
|
||||
return router.mainHandler != nil && router.requestHandler == nil
|
||||
}
|
||||
|
||||
// WrapRouter adds a wrapper on the top of the main router.
|
||||
// Usually it's useful for third-party middleware
|
||||
// when need to wrap the entire application with a middleware like CORS.
|
||||
|
||||
Reference in New Issue
Block a user