From 3ca10f079dc9d4f107d1e6b675ef1ceda5ee5198 Mon Sep 17 00:00:00 2001 From: Omar Najjar Date: Sun, 13 Apr 2025 03:40:07 +1000 Subject: [PATCH] X --- worker.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/worker.js b/worker.js index d5eea97..99a92d4 100644 --- a/worker.js +++ b/worker.js @@ -108,6 +108,8 @@ export default { return await createComment(request, env); } else if (path === '/api/votes' && request.method === 'POST') { return await createOrUpdateVote(request, env); + } else if (path === '/api/users' && request.method === 'POST') { + return await createOrGetUser(request, env); } } catch (error) { console.error('API Error:', error);