Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions server/src/API/API.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`));
};
};
};