-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Description
Thanks for your blog post. I'd like to get your thoughts on a potential hole I see in the design. Your web controller references req.body and res.json, which are elements of the Express framework. The controller methods are also obviously like Express middleware. These seem to be violations of Clean Architecture, as the outer-layer web framework is leaking into the adapter-layer web controller. What are your thoughts? I might just take the liberty of smashing the web controller and framework together using a factory function to build an Express Router that exposes the API routes.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels