Skip to content

[Request]: Adding mdw to >all< routes of one content type #2044

@nikita-fuchs

Description

@nikita-fuchs

Summary

In https://docs.strapi.io/dev-docs/backend-customization/routes, it's explained how to add middlewares to specific routes of one content type, e.g. find. But how does one make a middleware function run on all routes of one data type?

Why is it needed?

One sometimes needs a middleware function to run on all routes of one datatype.

Suggested solution(s)

Just add an explanation / example maybe.

Related issue(s)/PR(s)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions