WP REST API Custom endpoint don’t work in my plugin

It was a simple typo as posted by @Sally CJ.

Instead of

$namespace + $base

Use

$namespace . $base

Thank you