Since the middleware function names haven’t changed, our existing routes continue to work exactly as before, but we need to update the import statement to reference the new file. Now in routes/users.ts we import from user-validation not validation:
import {
validateUserId,
validateRequiredUserData,
validatePartialUserData,
} from "../middleware/user-validation";