If you have a piece of logic that needs to be shared between two controllers where do you keep it?

softwareengineering.stackexchange https://softwareengineering.stackexchange.com/questions/63238

  •  31-10-2019
  •  | 
  •  

سؤال

I have a set of single purpose functions that I need in two separate controllers. Right now I just have duplicate code and I want to get rid of it. This code is part of the controller and doesn't belong in my service layer. Where would you put it?

لا يوجد حل صحيح

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى softwareengineering.stackexchange
scroll top