'use strict';

const Controller = require('./controller');

class HealthCheckController extends Controller {
    constructor(config) {
        super(config);
        this.get('/', this.logout);
    }

    logout(req, res) {
        if (req.session) {
            req.session = null;
        }
        if (req.logout) {
            req.logout();
        }
        res.redirect(`${this.config.baseUriPath}/`);
    }
}

module.exports = HealthCheckController;

@@ -340,32 +340,73 @@
 ut();%0A        %7D%0A
+        res.set('Clear-Site-Data', '*');%0A
         res.redi

set clear-site-data on logout