1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-17 18:07:01 +00:00

Browser Live Reload with the upcoming Iris CLI :)

Former-commit-id: dd061ca2977d0d5456f72ac05b6a42d9bb0c2697
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-01-09 08:15:01 +02:00
parent 5ff2ed016d
commit 4cfd3c7a05
2 changed files with 111 additions and 4 deletions

View File

@@ -706,7 +706,7 @@ func (api *APIBuilder) Use(handlers ...context.Handler) {
// It doesn't care about call order, it will prepend the handlers to all
// existing routes and the future routes that may being registered.
//
// The difference from `.DoneGLobal` is that this/or these Handler(s) are being always running first.
// The difference from `.DoneGlobal` is that this/or these Handler(s) are being always running first.
// Use of `ctx.Next()` of those handler(s) is necessary to call the main handler or the next middleware.
// It's always a good practise to call it right before the `Application#Run` function.
func (api *APIBuilder) UseGlobal(handlers ...context.Handler) {