fix linting error

This commit is contained in:
Cassie Tarakajian 2018-05-30 14:23:11 -07:00
parent d5856ba923
commit 63be548f63

View file

@ -57,15 +57,27 @@ router.get('/verify', (req, res) => {
});
router.get('/sketches', (req, res) => {
req.user ? res.send(renderIndex()) : res.redirect('/login');
if (req.user) {
res.send(renderIndex());
} else {
res.redirect('/login');
}
});
router.get('/assets', (req, res) => {
req.user ? res.send(renderIndex()) : res.redirect('/login');
if (req.user) {
res.send(renderIndex());
} else {
res.redirect('/login');
}
});
router.get('/account', (req, res) => {
req.user ? res.send(renderIndex()) : res.redirect('/login');
if (req.user) {
res.send(renderIndex());
} else {
res.redirect('/login');
}
});
router.get('/about', (req, res) => {