From 26f7b9593a48b62e5f20b7f377b6a197f7c798d2 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 30 Aug 2020 21:43:41 -0400 Subject: [PATCH] push auths --- src/class/Server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/class/Server.ts b/src/class/Server.ts index 296fbe0..ce1da24 100644 --- a/src/class/Server.ts +++ b/src/class/Server.ts @@ -29,7 +29,6 @@ export default class Server { } private async loadRoutes(): Promise { - this.app.use('/static', express.static(`${__dirname}/../../dist/api/static`)); const routes = await fs.readdir(`${__dirname}/../api/routes`); routes.forEach(async (routeFile) => { if (routeFile === 'index.js') return; @@ -51,6 +50,7 @@ export default class Server { this.client.util.handleError(error); } }); + this.app.use('/static', express.static('/opt/CloudServices/dist/api/static')); } private connect(): void {