DEV Community

Discussion on: Why should you separate Controllers from Services in Node REST API's?

Collapse
 
klanmiko profile image
Kaelan Mikowicz

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

Collapse
 
ccleary00 profile image
Corey Cleary • Edited

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