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

fix UseRouter not respected by iris-cli live reload

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-09-18 02:08:27 +03:00
parent 7fa2666f58
commit d5a179cc45
4 changed files with 31 additions and 24 deletions

View File

@@ -623,7 +623,7 @@ func (app *Application) Build() error {
if !app.Router.Downgraded() {
// router
if _, err := injectLiveReload(app.ContextPool, app.Router); err != nil {
if _, err := injectLiveReload(app); err != nil {
app.logger.Errorf("LiveReload: init: failed: %v", err)
return err
}