title: Wp Rest Api Custom End point
body: <p>Im trying to add a custom end point to my wp-rest api the latest version. I have this already but the one with the slug param at the end does not work.. Does any one know why.. would be great if anyone could help..</p>
  
  <pre><code>     register_rest_route( 'wp/v2', '/guestmix', array(
          array(
              'methods'         =&gt; WP_REST_Server::READABLE,
              'callback'        =&gt; array( $this, 'get_guestmixes' )
          ),
          'schema' =&gt; array( $this, 'get_public_item_schema' )
      ) );
  
      register_rest_route( 'wp/v2', '/guestmix/(?P&lt;slug&gt;\d+)', array(
          'methods' =&gt; 'GET',
          'callback' =&gt; 'get_guestmix'
      ) );
  </code></pre>