API handlers

There is such a file structure

The goal is to have a common handler for entities as well as specific handlers for specific entities.

The problem is that when requesting /api/tasks/12, the shared handler is not used when the tasks folder is present at the same level as [entity]

Do you have any ideas how to solve it?
image.png
Was this page helpful?