re: Why should you separate Controllers from Services in Node REST API's? VIEW POST


I like the idea of refactoring controllers into smaller services. Though, how does the concept of a service differ from a regular async function?


Services are just an organizational concept - and they don't have to be async functions, they can be any function (or collection of functions).

code of conduct - report abuse