mirror of
https://github.com/kataras/iris.git
synced 2025-12-17 18:07:01 +00:00
implement path prefx for i18n middleware, as requested at: #1369
Former-commit-id: b0d6b6e7f368e710b01faad9b70dfa4cebdd8c4d
This commit is contained in:
@@ -397,6 +397,9 @@ func (api *APIBuilder) Handle(method string, relativePath string, handlers ...co
|
||||
|
||||
var route *Route // the last one is returned.
|
||||
for _, route = range routes {
|
||||
if route == nil {
|
||||
break
|
||||
}
|
||||
// global
|
||||
|
||||
route.topLink = api.routes.getRelative(route)
|
||||
|
||||
Reference in New Issue
Block a user