diff --git a/index.js b/index.js index 12ed066..4e2e91b 100644 --- a/index.js +++ b/index.js @@ -350,6 +350,18 @@ fastify.post('/get', async (request, reply) => { why: "Missing type" } } + } else if ("type" in content) { + switch (content.type) { + case "activity": + return { + success: true, + activityData: ActivityData + } + break; + default: + return auth; + break; + } } else { return auth }