mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 12:57:05 +00:00
implement #1536 with (SetRegisterRule(iris.RouteOverlap))
Former-commit-id: 2b5523ff3e2aab60dd83faa3c520b16a34916fbe
This commit is contained in:
3
iris.go
3
iris.go
@@ -617,6 +617,9 @@ const (
|
||||
// RouteError log when a route already exists, shown after the `Build` state,
|
||||
// server never starts.
|
||||
RouteError = router.RouteError
|
||||
// RouteOverlap will overlap the new route to the previous one.
|
||||
// If the route stopped and its response can be reset then the new route will be execute.
|
||||
RouteOverlap = router.RouteOverlap
|
||||
)
|
||||
|
||||
// Contains the enum values of the `Context.GetReferrer()` method,
|
||||
|
||||
Reference in New Issue
Block a user