Ver Fonte

small changes

ashwini há 2 meses atrás
pai
commit
4a7a147473
1 ficheiros alterados com 12 adições e 7 exclusões
  1. 12 7
      app.js

+ 12 - 7
app.js

@@ -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");
+})