forked from engineering/cloudservices
update webhook
parent
21e0064d97
commit
5f85dab318
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue