sorry, I am new in backend development. I usually create express middleware to perform the same action over and over again in Node JS
like for example, if I want to check