@Sliman_Medini your example is working beacause you use the route router.delete("/user/:recordId"..., but try with the route router.delete("/user", permissionMiddlewareCreator.delete() without the recordId in the route.
@Sliman_Medini your example is working beacause you use the route router.delete("/user/:recordId"..., but try with the route router.delete("/user", permissionMiddlewareCreator.delete() without the recordId in the route.