mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-19 04:54:43 +08:00
18 lines
348 B
JavaScript
18 lines
348 B
JavaScript
const express = require('express');
|
|
const app = express();
|
|
const pr = require("./pr");
|
|
var bodyParser = require('body-parser');
|
|
app.use(bodyParser());
|
|
|
|
|
|
app.post('/sign_5', function (req, res) {
|
|
let result = '';
|
|
result = pr.getCookie();
|
|
res.send(result);
|
|
});
|
|
|
|
|
|
app.listen(3005, () => {
|
|
console.log("开启服务,端口 3005")
|
|
});
|