update webhook

merge-requests/4/head
Matthew 2020-07-23 01:00:03 -04:00
parent 21e0064d97
commit 5f85dab318
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ export default class Webhook extends Route {
}
public bind() {
this.router.get('/s1', async (req, res) => {
this.router.post('/s1', async (req, res) => {
try {
if (req.headers.authorization !== this.server.security.keys.iv.toString('base64')) return res.status(401).json({ code: this.constants.codes.UNAUTHORIZED, message: this.constants.codes.UNAUTHORIZED });
const embed = new RichEmbed();