forked from projects/fipamo
18 lines
381 B
JavaScript
18 lines
381 B
JavaScript
const express = require('express');
|
|
const router = express.Router();
|
|
//--------------------------
|
|
// Index
|
|
//--------------------------
|
|
router.get('/', function(req, res) {});
|
|
|
|
//--------------------------
|
|
// Logout
|
|
//--------------------------
|
|
router.post('/logout', function(req, res) {
|
|
req.logout();
|
|
return res.json({
|
|
message: 'LOGGED OUT'
|
|
});
|
|
});
|
|
module.exports = router;
|