X
This commit is contained in:
parent
99b3f6b326
commit
3ca10f079d
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue