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

2
app.js
View File

@ -33,7 +33,7 @@ app.use((req, res, next) =>
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(bodyParser.json());
app.use("/api/user", userRoutes); app.use("/api/user", userRoutes);
app.use("/api/pause", userPausesRoutes); app.use("/api/pause", userPausesRoutes);