Skip to content

Commit

Permalink
Update dhcp_config_save.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Akkadius committed Sep 29, 2018
1 parent 391461e commit bb7117c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions routes/dhcp_config_save.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
*/

var express = require('express');
var router = express.Router();
var router = express.Router();


var authorize = require('../core/authorize.js');

router.post('/', authorize.auth, function(req, res, next) {
var request = req.body;


var fs = require('fs');

fs.writeFileSync("./syntax_verify_config", request.dhcp_config_data, 'utf8');

var exec = require('child_process').exec;
Expand Down Expand Up @@ -59,4 +61,4 @@ router.post('/', authorize.auth, function(req, res, next) {
});
});

module.exports = router;
module.exports = router;

0 comments on commit bb7117c

Please sign in to comment.