Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
feat(GithubWebhookManager): redirect 404 to github
Browse files Browse the repository at this point in the history
  • Loading branch information
ijsKoud committed Apr 25, 2023
1 parent 3874315 commit d475045
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/github/lib/webhook/GitHubWebhookManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default class GitHubWebhookManager {
private initProd() {
const server = express();
server
.get("*", (_, res) => res.redirect("https://ijskoud.dev/github/gitcord"))
.post("/webhook/:guildId/:webhookId", this.handleRequest.bind(this))
.listen(Number(process.env.PORT), () => this.client.logger.info(`[GITHUB]: Webhook server ready for event listening.`));
}
Expand Down

0 comments on commit d475045

Please sign in to comment.