|
@@ -18,10 +18,10 @@ app.use(express.urlencoded({
|
|
|
extended: true
|
|
|
}));
|
|
|
|
|
|
-const options = {
|
|
|
- key: fs.readFileSync('./certificate/private.key'),
|
|
|
- cert: fs.readFileSync('./certificate/certificate.crt')
|
|
|
-};
|
|
|
+// const options = {
|
|
|
+// key: fs.readFileSync('./certificate/private.key'),
|
|
|
+// cert: fs.readFileSync('./certificate/certificate.crt')
|
|
|
+// };
|
|
|
|
|
|
|
|
|
app.use(cors())
|
|
@@ -37,6 +37,11 @@ app.all('/*', function (req, res, next) {
|
|
|
|
|
|
|
|
|
|
|
|
-https.createServer(options, app).listen(port, () => {
|
|
|
- console.log(` listening port at https://localhost:${port}`)
|
|
|
-});
|
|
|
+// https.createServer(options, app).listen(port, () => {
|
|
|
+// console.log(` listening port at https://localhost:${port}`)
|
|
|
+// });
|
|
|
+
|
|
|
+
|
|
|
+app.listen(port,()=>{
|
|
|
+ console.log("listening port at http://localhost:9000");
|
|
|
+})
|