fix linting error
This commit is contained in:
parent
d5856ba923
commit
63be548f63
1 changed files with 15 additions and 3 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue