Remove WakeOnLan
This commit is contained in:
parent
2f68098f62
commit
18d70c6060
@ -118,22 +118,6 @@ router.get('/cash', function (req, res, next) {
|
||||
res.render('cash', { title: 'Cash' });
|
||||
});
|
||||
|
||||
router.get('/wake', function (req, res, next) {
|
||||
res.render('wake', { title: 'Cash' });
|
||||
});
|
||||
|
||||
const checkAuthenticated = require('../middleware/checkAuthenticated.js');
|
||||
const wakeOnLan = require('@mi-sec/wol');
|
||||
router.post('/wake', checkAuthenticated, function (req, res) {
|
||||
wakeOnLan(req.user.mac_address, {
|
||||
address: '255.255.255.255',
|
||||
packets: 1,
|
||||
interval: 100,
|
||||
port: 9
|
||||
});
|
||||
res.render('wake', { message: 'Waking up' });
|
||||
});
|
||||
|
||||
const userRouter = require('./user');
|
||||
//router.use('/user', userRouter);
|
||||
|
||||
|
@ -1,10 +0,0 @@
|
||||
<div class="container">
|
||||
<form action="/wake" method="post">
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Password</label>
|
||||
<input type="password" class="form-control" name="pass">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Submit</button>
|
||||
</form>
|
||||
{{message}}
|
||||
</div>
|
Loading…
x
Reference in New Issue
Block a user