Ajout affichage favicon côté backend

This commit is contained in:
Fabrice PENHOËT 2020-08-13 12:30:14 +02:00
parent 4c15e8e167
commit 6ada8656b1
1 changed files with 1 additions and 1 deletions

2
app.js
View File

@ -33,7 +33,7 @@ app.use((req, res, next) =>
next();
});
//app.use(express.static(path.join(__dirname, "front/public")));
app.use(express.static(path.join(__dirname, "front/public/img")));// permet affichage images côté API, notamment favicon.
app.use(bodyParser.json());
app.use("/api/user", userRoutes);
app.use("/api/pause", userPausesRoutes);