Skip to content

Commit 7c1c798

Browse files
committed
Trying to fix img routes
1 parent 2af87f0 commit 7c1c798

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async function startServer() {
5757
app.use('/api/email',authenticateUser, emailRoutes);
5858
app.use('/api/news',authenticateUser, newsRoutes);
5959
app.use('/api/discord',authenticateUser, discordRoutes);
60-
app.use("/uploads/imgnews", authenticateUser, express.static(path.join(__dirname, "/uploads/imgnews")));
60+
app.use("/api/uploads/imgnews", authenticateUser, express.static(path.join(__dirname, "/uploads/imgnews")));
6161

6262
// Démarrage du serveur
6363
app.listen(server_port, () => {

0 commit comments

Comments
 (0)