This commit is contained in:
Omar Najjar 2025-04-13 03:40:07 +10:00
parent 99b3f6b326
commit 3ca10f079d

View file

@ -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);