You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
663 B

"use strict"
var app = require('express')();
var http = require('http').Server(app);
var https = require('https');
var express = require('express');
app.use(express.json());
const helmet = require('helmet');
app.use(helmet());
const cors = require('cors')
app.use(cors)
app.get('/run', (req, res, next) => {
console.log('hi');
(async() => {
var RES = new Object();
RES.code = req.query["action"]
RES.token = req.query["token"]
RES.error = false
RES.error_msg = "ok"
res.json(RES)
})()
});
http.listen(3000, () => console.error('listening on http://localhost:3000/'));
console.error('socket.io example');