main
Some checks failed
Backend Deploy 🚀 / build-and-deploy (push) Has been cancelled

This commit is contained in:
Harun CAN
2026-04-05 20:37:15 +03:00
parent 9f17ced37d
commit 9486f86cca
22 changed files with 2175 additions and 29 deletions

23
test-fetch.cjs Normal file
View File

@@ -0,0 +1,23 @@
const http = require('http');
async function test() {
const req = http.request({
hostname: 'localhost',
port: 3000,
path: '/api/projects',
method: 'GET',
headers: {
'Accept': 'application/json'
}
}, (res) => {
let rawData = '';
res.on('data', (chunk) => rawData += chunk);
res.on('end', () => {
console.log('Status code:', res.statusCode);
console.log('Raw data length:', rawData.length);
console.log('Raw data start:', rawData.slice(0, 200));
});
});
req.on('error', (e) => console.error(`problem with request: ${e.message}`));
req.end();
}
test();