OSDN Git Service

Modified: Upload, Command execution
[eos/zephyr.git] / server / api / optionControlFile / index.js
1 'use strict';
2
3 var express = require('express');
4 var router  = express.Router();
5
6 router.get('/:commandName', function(req, res) {
7    var optionJSON = require(__dirname + '/../../../user-specific-files/OptionControlFile/commands/' + req.params.commandName);
8    var info = {
9        status: 'success',
10        info: optionJSON
11    };
12    res.send(info);
13 });
14
15 module.exports = router;