mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
update the subdomain redirect example using the rewrite middleware
This commit is contained in:
@@ -980,7 +980,7 @@ func (api *APIBuilder) UseOnce(handlers ...context.Handler) {
|
||||
|
||||
// UseGlobal registers handlers that should run at the very beginning.
|
||||
// It prepends those handler(s) to all routes,
|
||||
// including all parties, subdomains.
|
||||
// including all parties, subdomains and errors.
|
||||
// It doesn't care about call order, it will prepend the handlers to all
|
||||
// existing routes and the future routes that may being registered.
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user