Update routes.js

This commit is contained in:
William Mantly 2019-12-09 21:49:37 -05:00 committed by GitHub
parent fbbd56e08a
commit e220788b5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,10 @@ router.post('/', async function(req, res){
} }
try{ try{
Host.add({host, ip, username: req.user.username}); await Host.add({host, ip,
username: req.user.username,
forceSSL: req.body.forceSSL
});
return res.json({ return res.json({
message: `Host ${host} Added` message: `Host ${host} Added`