Scalable IoT solution for real-time body position data
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
371 B

const express = require('express');
const router = express.Router();
const passport = require('passport')
router.get('/auth/login', passport.authenticate('local', {failureRedirect: '/login'},
(req, res) => {
res.redirect('/');
})
);
router.get('/auth/logout', (req, res) => {
req.logout();
res.redirect('/login');
});
module.exports = router;