|
|
@ -112,8 +112,8 @@ func (a *application) AttachApplication(app Application) { |
|
|
|
|
|
|
|
// If the current proxy isn't a multiapp proxy, we'll fix that and set the
|
|
|
|
// current proxy as the default handler.
|
|
|
|
p, multi := a.proxy.(MultiAppProxyHandler) |
|
|
|
if !multi { |
|
|
|
p, ok := a.proxy.(MultiAppProxyHandler) |
|
|
|
if !ok { |
|
|
|
p = NewMultiAppProxy(NewRadixLoader(a.Router().proxy)) |
|
|
|
|
|
|
|
a.Router().SetupMuxer() |
|
|
@ -132,7 +132,7 @@ func (a *application) AttachApplication(app Application) { |
|
|
|
// Signal: OnApplicationAttached.
|
|
|
|
signals.EmitFunc(SigApplicationAttached, func(fn interface{}) { |
|
|
|
if f, ok := fn.(OnApplicationAttached); ok { |
|
|
|
f(app, multi, a.master) |
|
|
|
f(app, a.master) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|