fix backend bug

This commit is contained in:
Jack committed 2026-06-09 09:54:29 +08:00
1 parent f24f1755d4
commit 5cc21a51e1
4 files changed
+83

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/logs/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();