Skip to content

thoughts on Express leakage #7

@restjohn

Description

@restjohn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions