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

Commit

Permalink
fix: cannot post /webhook/:guildId/:webhookId
Browse files Browse the repository at this point in the history
  • Loading branch information
ijsKoud committed Apr 25, 2023
1 parent 8e6dd05 commit 7fcd098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/github/lib/webhook/GitHubWebhookManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ 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))
.get("*", (_, res) => res.redirect("https://ijskoud.dev/github/gitcord"))
.listen(Number(process.env.PORT), () => this.client.logger.info(`[GITHUB]: Webhook server ready for event listening.`));
}

Expand Down

0 comments on commit 7fcd098

Please sign in to comment.