diff --git a/src/index.ts b/src/index.ts index f396445..006cb3d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -17,9 +17,9 @@ app.get("/images", imageController.getAllImages); app.post("/images", authControler.authorize, imageController.addImage); app.post("/login", authControler.login) -// Set the default port to 8080, or use the PORT environment variable const start = async () => { + // Set the default port to 8080, or use the PORT environment variable const port = process.env.PORT || 8080; const mongo_uri: string = process.env.MONGODB_URI || ""; const mongo_user = process.env.MONGODB_USER;