格式化 JSON 响应以提高可读性
This commit is contained in:
1 parent
edd66080af
commit
8f3b3618e9
1 file changed
+1
-1
+1
-1
@@ -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