DEV Community

Discussion on: Difference between Controllers, Routes and Services

Collapse
 
barabazs profile image
Barabazs

Controllers and routes are the same, as in they are a type of "middleware".
IIRC express.js does not explicitly mention controllers, but refer to the term "application-level middleware". And routers are "router-level middleware".