From bd852937a6115c13c0f999c099c6191415987656 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Sun, 1 Jan 2023 21:40:58 +0100 Subject: [PATCH] admin page.... --- index.js | 1 + static/index.html | 9 ++++-- static/js/main.js | 72 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 80 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 633c1b6..bce5fb4 100644 --- a/index.js +++ b/index.js @@ -122,6 +122,7 @@ fastify.post('/addPrank', async (request, reply) => { if (amount < MaxAmountCrepe) { let prankUid = makeid(16); PrankData[prankUid] = { + date: new Date(), creator: content.uid, type: content.type, where: content.where, diff --git a/static/index.html b/static/index.html index 6e8c011..cfabfec 100644 --- a/static/index.html +++ b/static/index.html @@ -79,8 +79,13 @@ -