Update dhcp_config_save.js
This commit is contained in:
parent
391461eeb1
commit
bb7117ca0f
|
@ -3,13 +3,15 @@
|
|||
*/
|
||||
|
||||
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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue