|
@@ -158,20 +158,15 @@ const API = require('./lib/API');
|
|
|
const { sessionName, sessionKeys } = require('./config');
|
|
|
|
|
|
let info = {
|
|
|
- numberFollower: 0000,
|
|
|
+ numberFollower: 00001,
|
|
|
companyID: null,
|
|
|
orgaName: "spirit_3",
|
|
|
- tokens: {
|
|
|
- access_token: "",
|
|
|
- expires_in: 23444
|
|
|
- },
|
|
|
+ tokens: null,
|
|
|
active: false,
|
|
|
updateTime: 2 * 60000 // 2min
|
|
|
}
|
|
|
|
|
|
-app.disable('x-powered-by');-
|
|
|
-
|
|
|
-app.use('/public', express.static(path.join(__dirname, 'public')));
|
|
|
+app.disable('x-powered-by');
|
|
|
app.use(bodyParser.urlencoded({ extended: true}));
|
|
|
|
|
|
app.get('/', (req, res) => {
|
|
@@ -195,7 +190,7 @@ app.get('/test', async (req, res) => {
|
|
|
app.get('/company', async (req, res) => {
|
|
|
try {
|
|
|
const id = await API.getCompanyID(info);
|
|
|
- console.log("[getLinkedinId]", id)
|
|
|
+ console.log("[getCompanyID]", id)
|
|
|
res.json(id)
|
|
|
} catch(err) {
|
|
|
res.send(err);
|