UserDeleter = require("./UserDeleter") module.exports = deleteUser: (req, res)-> user_id = req.session.user._id UserDeleter.deleteUser user_id, (err)-> if !err? req.session.destroy() res.send(200)