I have a problem with my route :

```js
let passport = require('passport');
let appkey = require('../keyapp').init;

/**
 * @param  {Express} app
 */
function initApp(app) {
    app.get('/app', renderApp);

}
/**
 * @param  {request} req
 * @param  {response} res
 * @param {string} messageReq
 */
function renderApp(req, res, messageReq) {
    let message = '';
    let connected = false;

    if (messageReq) {
        message = messageReq;
    }
    if (req.isAuthenticated()) {
        connected = true;
    }
    res.render('application/index', {
        connected: connected,
        message: message,
    });
}

module.exports = initApp;
```

So i get : `Error: Can't set headers after they are sent.`

I really don't know why, and i need to put more words to be able to post, so it is ok i think