egg icon indicating copy to clipboard operation
egg copied to clipboard

在中间件可以调用controller里面的方法吗?

Open jjackychen opened this issue 8 years ago • 2 comments

jjackychen avatar May 25 '18 11:05 jjackychen

Translation of this issue:


In the middleware can call the controller inside the method?

egg-bot avatar May 25 '18 11:05 egg-bot

not, you should place your shared logic into service

atian25 avatar May 26 '18 02:05 atian25