aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-07-11 18:10:44 +0200
committerMateja <mail@matejamaric.com>2021-07-11 18:10:44 +0200
commit6da47e69d282921b45b9ed36940892e229846469 (patch)
treede32a9b7f406a31c9e1d1238fb66ad5b5068513e
parent587e9aa95825b6e62e33c801c5367877ed0ec230 (diff)
downloadmevn-ecommerce-6da47e69d282921b45b9ed36940892e229846469.tar.gz
mevn-ecommerce-6da47e69d282921b45b9ed36940892e229846469.zip
Serve uploaded images.
-rw-r--r--server/main.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/main.js b/server/main.js
index bdcf9a4..e6f5558 100644
--- a/server/main.js
+++ b/server/main.js
@@ -21,5 +21,6 @@ require('./config/passport');
app.use(passport.initialize());
app.use('/api', apiRoutes);
+app.use('/api/uploads', express.static('uploads'));
app.listen(port, () => console.log(`Server started on port ${port}.`));