push auths
parent
88728802a8
commit
26f7b9593a
|
@ -29,7 +29,6 @@ export default class Server {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async loadRoutes(): Promise<void> {
|
private async loadRoutes(): Promise<void> {
|
||||||
this.app.use('/static', express.static(`${__dirname}/../../dist/api/static`));
|
|
||||||
const routes = await fs.readdir(`${__dirname}/../api/routes`);
|
const routes = await fs.readdir(`${__dirname}/../api/routes`);
|
||||||
routes.forEach(async (routeFile) => {
|
routes.forEach(async (routeFile) => {
|
||||||
if (routeFile === 'index.js') return;
|
if (routeFile === 'index.js') return;
|
||||||
|
@ -51,6 +50,7 @@ export default class Server {
|
||||||
this.client.util.handleError(error);
|
this.client.util.handleError(error);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
this.app.use('/static', express.static('/opt/CloudServices/dist/api/static'));
|
||||||
}
|
}
|
||||||
|
|
||||||
private connect(): void {
|
private connect(): void {
|
||||||
|
|
Loading…
Reference in New Issue