title: Multiple routes with the same anonymous callback using Slim Framework
body: <p>How can I define multiple routes that use the same anonymous callback?</p>
  
  <pre><code>$app-&gt;get('/first_route',function()
  {
     //Do stuff
  });
  $app-&gt;get('/second_route',function()
  {
     //Do same stuff
  });
  </code></pre>
  
  <p>I know I can use a reference to a function which would work, but I'd prefer a solution for using the anonymous function to be consistent with the rest of the codebase.</p>
  
  <p>So basically, what I'm looking for is a way of doing something like this:</p>
  
  <pre><code>$app-&gt;get(['/first_route','/second_route'],function()
  {
         //Do same stuff for both routes
  });
  </code></pre>
  
  <p>~ OR ~</p>
  
  <pre><code>$app-&gt;get('/first_route',function() use($app)
  {
     $app-&gt;get('/second_route');//Without redirect
  });
  </code></pre>
  
  <p>Thank you.</p>