fix backend bug again

This commit is contained in:
Jack committed 2026-06-09 10:36:35 +08:00
1 parent 5cc21a51e1
commit 73525899e7
3 files changed
+71

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
const http = require('http');
const req = http.request({
hostname: 'localhost',
port: 3131,
path: '/api/profile/default_user',
method: 'GET'
}, (res) => {
let body = '';
res.on('data', chunk => body += chunk);
res.on('end', () => console.log('Response:', res.statusCode, body));
});
req.on('error', e => console.error('Error:', e));
req.end();