Commit 008d1665 authored by 刘松's avatar 刘松

init

parents
node_modules
babelCache
draft/
config/dev.js
.vscode
*.logs
*.log
.DS_Store
package-lock.json
var PORT = 3001;
var express = require('express');
var path = require('path');
var app = express();
var qdMap = {
a:'test',
b:'test1'
}
app.use('/code',function(req,res){
var qd = req.query.qd;
console.dir(qd);
var code = 'var cptext_tkl = "' + (qdMap[qd] || 'abc') + '";'
res.send(code);
});
app.use(function(req,res) {
res.status(404).end('not found');
});
app.listen(PORT);
\ No newline at end of file
{
"name": "js",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git@git.yunpro.cn:liusong/jsSender.git"
},
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.16.2"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment