v1.0.0 #28
|
@ -17,9 +17,9 @@ app.get("/images", imageController.getAllImages);
|
||||||
app.post("/images", authControler.authorize, imageController.addImage);
|
app.post("/images", authControler.authorize, imageController.addImage);
|
||||||
app.post("/login", authControler.login)
|
app.post("/login", authControler.login)
|
||||||
|
|
||||||
// Set the default port to 8080, or use the PORT environment variable
|
|
||||||
|
|
||||||
const start = async () => {
|
const start = async () => {
|
||||||
|
// Set the default port to 8080, or use the PORT environment variable
|
||||||
const port = process.env.PORT || 8080;
|
const port = process.env.PORT || 8080;
|
||||||
const mongo_uri: string = process.env.MONGODB_URI || "";
|
const mongo_uri: string = process.env.MONGODB_URI || "";
|
||||||
const mongo_user = process.env.MONGODB_USER;
|
const mongo_user = process.env.MONGODB_USER;
|
||||||
|
|
Loading…
Reference in New Issue