title: Koa-router and POST
body: <p>I'm trying to handle POST request within my koa-router. Unfortunately, every time I try to get data send using my form, I get nothing. I've tried koa-bodyparser, no luck there. I'm using Jade as template engine. </p>
  
  <p><strong>router.js:</strong></p>
  
  <pre><code>var jade = require('jade');
  var router = require('koa-router')();
  var bodyParser = require('koa-bodyparser');
  exports.enableRouting = function(app){
    app.use(bodyParser())      
    router.get('/game/questions', function *(next){
      this.status = 200;
      this.body = jade.renderFile('game_questions.jade');
    });
    router.post('/game/questions', function *(next){
      console.log(this.request.body);
      this.status = 200;
      this.body = jade.renderFile('game_questions.jade');
    });
    app
        .use(router.routes())
        .use(router.allowedMethods());
  }
  </code></pre>
  
  <p>and part of <strong>game_questions.jade</strong>:</p>
  
  <pre><code>form(method='post' id='New_Question_Form')
    input(type='text', id='New_Question_Text')
    input(type='submit' value='Add Question')
  </code></pre>
  
  <p><code>this.request.body</code> is empty, <code>this.request</code> returns: method, URL and header. Any help appreciated!</p>