Skip to content

MIddleware for controllers #12

@martian17

Description

@martian17

Controllers here are written as bare functions,
How could we apply different middlewares to each controllers depending on need?

This is useful when validating data fields that are only present in some of the controllers. Otherwise, we would need to explicitly declare an error return statement, which is prone to error.

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