How to add a base/front slug/url to specific post types?

You can achieve this with the slug argument when you register your post type.

$args = array(
    'rewrite' => array( 'slug' => 'my-base-slug/custom-post-type-1' ),
    // your other args...
);
register_post_type( 'mycpt', $args );