diff --git a/server/src/API/API.ts b/server/src/API/API.ts index 01d61fb..bcd29fc 100644 --- a/server/src/API/API.ts +++ b/server/src/API/API.ts @@ -30,7 +30,9 @@ export default class API { new InviteRouter(this.server, this.client); new MemberRouter(this.server, this.client); new OAuth2Router(this.server, this.client, this.oauth); + + const port = process.env.PORT as any || 8080 - createServer(this.server).listen(8080, "0.0.0.0", (): void => console.log(`${this.client.util.getTime()} | [ Matrix API ] Matrix website API member and OAuth2 routers are online and running.`)); + createServer(this.server).listen(port, "0.0.0.0", (): void => console.log(`${this.client.util.getTime()} | [ Matrix API ] Matrix website API member and OAuth2 routers are online and running.`)); }; -}; \ No newline at end of file +};