title: Prefix all the routes in Lumen
body: <p>Is there a way in Lumen to prefix all of my routes?</p>
  
  <p>The thing is that I'm versioning my API via URI and for every group that I create I have to set the prefix to 'v1/*' like:</p>
  
  <pre><code>$app-&gt;group(['prefix' =&gt; 'v1/students/', 'namespace' =&gt; 'App\Http\Controllers\Students\Data'], function () use ($app) {
      $app-&gt;get('/', 'StudentController@get');
      $app-&gt;get('/{id}', 'StudentController@getByID');
  });
  </code></pre>