Your D1 Database contains the following data:
> SELECT * FROM comments;
[
{
"id": 1,
"author": "ชานน",
"content": "ภูพานทà¸à¸‡"
},
{
"id": 2,
"author": "Serena",
"content": "Great job!"
},
{
"id": 3,
"author": "ไà¸à¸‹à¹Œ",
"content": "พันดารา"
},
{
"id": 4,
"author": "สมชาย",
"content": "Dee MB"
}
]
Build a comments API with Workers and D1