forked from engineering/cloudservices
wh fixes
parent
dd12ff6d1c
commit
21e0064d97
|
@ -10,7 +10,7 @@ export default class Webhook extends Route {
|
|||
public bind() {
|
||||
this.router.get('/s1', async (req, res) => {
|
||||
try {
|
||||
if (req.headers.authorization !== this.server.security.keys.iv.toString()) return res.status(401).json({ code: this.constants.codes.UNAUTHORIZED, message: this.constants.codes.UNAUTHORIZED });
|
||||
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();
|
||||
embed.setTitle('Service Request');
|
||||
embed.setDescription(req.body.url);
|
||||
|
|
Loading…
Reference in New Issue