格式化 JSON 响应以提高可读性
This commit is contained in:
@@ -96,7 +96,7 @@ async function handleRequest(request) {
|
||||
phoneNumber: phone
|
||||
};
|
||||
|
||||
return new Response(JSON.stringify(jsonResponse), {
|
||||
return new Response(JSON.stringify(jsonResponse, null, 2), {
|
||||
headers: { 'content-type': 'application/json;charset=UTF-8' },
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user