1
0
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:
Gerasimos (Makis) Maropoulos
2020-08-26 00:07:07 +03:00
parent 5e82fa5b89
commit 1780d97d44
4 changed files with 151 additions and 52 deletions

View File

@@ -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.
//