فهرست منبع

small changes

ashwini 2 ماه پیش
والد
کامیت
4a7a147473
1فایلهای تغییر یافته به همراه12 افزوده شده و 7 حذف شده
  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");
+})