mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
Former-commit-id: 2b48b9b912e9eb8f5f2c6d413907dbfdae857e08
This commit is contained in:
@@ -82,7 +82,7 @@ func (h *routerHandler) Build(provider RoutesProvider) error {
|
||||
registeredRoutes := provider.GetRoutes()
|
||||
h.trees = h.trees[0:0] // reset, inneed when rebuilding.
|
||||
|
||||
// sort, subdomains goes first.
|
||||
// sort, subdomains go first.
|
||||
sort.Slice(registeredRoutes, func(i, j int) bool {
|
||||
first, second := registeredRoutes[i], registeredRoutes[j]
|
||||
lsub1 := len(first.Subdomain)
|
||||
|
||||
Reference in New Issue
Block a user