title: Slim Framework show info when using old api version
body: <p>I am following <a href="http://www.sitepoint.com/best-practices-rest-api-scratch-introduction/" rel="nofollow">this guide</a> for using Slim Groups to version my API. I just wanted to know if it is possible to capture all calls against an old version without the need to do this for every function. Like a wildcard, you know?</p>
  
  <p>E.g. I updated from v1 to v2 so the call: <code>myapi.com/v1/user/1</code> should return: You are using an old API version.</p>
  
  <p>But I don't want to do it like this (for every function):</p>
  
  <pre><code>$app-&gt;group('/v1', function () use ($app) {
      $app-&gt;group('/user', function () use ($app) {
          $app-&gt;get('/:id', function ($id) {
              echo "You are using an old version.";
          });
      });
  });
  </code></pre>
  
  <p>But more like this (that he ignores all subparts and parameters):</p>
  
  <pre><code>$app-&gt;get('/v1/*', function ($id) {
     echo "You are using an old version.";
  });
  </code></pre>
  
  <p>This is just a private API that only my App that will know how to handle this will use so please don't care about backward compatibility ^^</p>