title: Get Koa Actual route
body: <p>I am new in koa. I need to get a actual route in koa request.</p>
  
  <p>Example 1 : If i hit a route  <code>/user</code> and i get the ctx origin url <code>/user/</code>.</p>
  
  <p>Example 2 : If i hit a route <code>user/:id</code> and i get the ctx origin url <code>/user/1</code>.</p>
  
  <p>I try to get the path like </p>
  
  <pre><code>exports.checkAuth = async ctx =&gt; {
     console.log(ctx.originalUrl); // return -&gt; /user/1
     console.log(ctx.path); // return -&gt; /user/1
   };
  </code></pre>
  
  <p><strong>I want to get the actual route path like <code>user/:id</code> in each request .</strong></p>
  
  <p>In express route get a actual path like this </p>
  
  <pre><code> app.get('/user/:id', function userIdHandler(req, res) {
       console.log(req.route);
   });
  </code></pre>
  
  <p><strong>Output:</strong>    </p>
  
  <pre><code>{ path: '/user/:id',
  stack:
     [ { handle: [Function: userIdHandler],
     name: 'userIdHandler',
     params: undefined,
     path: undefined,
     keys: [],
     regexp: /^\/?$/i,
     method: 'get' } ],
  methods: { get: true } }
  </code></pre>