backed tracked some changes
This commit is contained in:
@@ -25,16 +25,4 @@ router.get('/login', function(req, res, next) {
|
||||
res.render('login', {redirect: req.query.redirect});
|
||||
});
|
||||
|
||||
router.get('/lookup/:host', async function(req, res, next){
|
||||
try{
|
||||
return res.json({
|
||||
string: req.params.host,
|
||||
results: await Host.lookUp(req.params.host),
|
||||
});
|
||||
|
||||
}catch(error){
|
||||
return next(error);
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = router;
|
||||
|
||||
Reference in New Issue
Block a user