aboutsummaryrefslogtreecommitdiff
path: root/src/api/structures/Server.js
diff options
context:
space:
mode:
authorPitu <[email protected]>2020-05-10 20:02:48 +0900
committerPitu <[email protected]>2020-05-10 20:02:48 +0900
commit4c52932426a3e91a205940a6ab08bfee3e23fadf (patch)
tree5970a1b1402ec1b205248389a8f09cc6649239cc /src/api/structures/Server.js
parentFeature: Migration script from v3 to v4 (diff)
downloadhost.fuwn.me-4c52932426a3e91a205940a6ab08bfee3e23fadf.tar.xz
host.fuwn.me-4c52932426a3e91a205940a6ab08bfee3e23fadf.zip
Features:
* Serve files during development * Own endpoint for fetching the albums of a file
Diffstat (limited to 'src/api/structures/Server.js')
-rw-r--r--src/api/structures/Server.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/structures/Server.js b/src/api/structures/Server.js
index c80c44f..44d4e44 100644
--- a/src/api/structures/Server.js
+++ b/src/api/structures/Server.js
@@ -37,8 +37,9 @@ class Server {
// Serve the frontend if we are in production mode
if (process.env.NODE_ENV === 'production') {
this.server.use(express.static(path.join(__dirname, '..', '..', '..', 'dist')));
- this.server.use(express.static(path.join(__dirname, '..', '..', '..', 'uploads')));
}
+ // Serve the uploads
+ this.server.use(express.static(path.join(__dirname, '..', '..', '..', 'uploads')));
this.routesFolder = path.join(__dirname, '..', 'routes');
}