fix backend bug again
This commit is contained in:
1 parent
5cc21a51e1
commit
73525899e7
3 files changed
+71
No files matched your search
@@ -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();
|
||||
Reference in new issue
Block a user