From a6c61cbc694c60c80e729afe31b61267e0e0be91 Mon Sep 17 00:00:00 2001 From: Lenilk <71206634+Lenilk@users.noreply.github.com> Date: Sun, 30 Apr 2023 16:40:28 +0700 Subject: [PATCH] Update api.js --- api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.js b/api.js index 6e29f07..8c258b1 100644 --- a/api.js +++ b/api.js @@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); const express = require("express"); const mongoose = require("mongoose"); const app = express(); -const port = 3000; +const port = 3000 || process.env.PORT; var bodyParser = require('body-parser'); mongoose.connect("mongodb+srv://Lenilk:0952603272Ln@refriguratorapp.hegckog.mongodb.net/Refrigurator"); const databased = mongoose.connection;