fipamo/brain/routes/back/index.js

18 lines
381 B
JavaScript
Raw Normal View History

const express = require('express');
const router = express.Router();
2018-10-31 17:00:31 +01:00
//--------------------------
// Index
//--------------------------
router.get('/', function(req, res) {});
2018-10-31 17:00:31 +01:00
//--------------------------
// Logout
2018-10-31 17:00:31 +01:00
//--------------------------
router.post('/logout', function(req, res) {
req.logout();
return res.json({
message: 'LOGGED OUT'
});
2018-10-31 17:00:31 +01:00
});
module.exports = router;