0
0
Fork 0

Update all the endpoints to work with the new DB structure

This commit is contained in:
Oliver-Akins 2021-07-23 13:22:57 -06:00
parent 1c9d01ea22
commit 4da7cb9b0a
6 changed files with 123 additions and 92 deletions

View file

@ -32,6 +32,7 @@ async function handleButton(data: any): Promise<object> {
export default {
method: `POST`, path: `/discord/webhook`,
options: { auth: false },
async handler(request: Request, h: ResponseToolkit) {
let sig = request.headers[`x-signature-ed25519`];
let timestamp = request.headers[`x-signature-timestamp`];