Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
maelaubert56 committed Jul 18, 2024
1 parent da3863e commit c72c792
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions back/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ app.use(cors());

app.use(express.urlencoded({ extended: true }));

app.use(express.json({ limit: "50mb" }));
app.use(express.json());
app.use(bodyParser.json());

app.use(function (req, res, next) {
Expand All @@ -36,7 +36,7 @@ app.use("/gallery", require("./routes/gallery"));
app.use("/data", require("./routes/data"));

app.listen(process.env.PORT, () => {
console.log("Server is running at http://localhost:3000");
console.log("Server is running at http://localhost:" + process.env.PORT);
});

module.exports = app;
6 changes: 5 additions & 1 deletion front/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ dist-ssr
*.sw?

.env
.DS_Store
.DS_Store

dist

.vite

0 comments on commit c72c792

Please sign in to comment.