Explorar el Código

small changes

ashwini hace 1 mes
padre
commit
4a7a147473
Se han modificado 1 ficheros con 12 adiciones y 7 borrados
  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");
+})