Files
clube67_newwhats.local/base-scoreodonto/scoreodonto/test_login.js
T
VPS 4 Deploy Agent 5ec6bd6354
continuous-integration/webhook Falha no deploy de clube67_newwhats.local (VPS 4)
chore(ops): migrate clube67 to newwhats.clube67.com directory
2026-05-18 03:26:41 +02:00

30 lines
696 B
JavaScript

import http from 'http';
const testLogin = () => {
const options = {
hostname: 'localhost',
port: 3005,
path: '/api/login',
method: 'POST',
headers: {
'Content-Type': 'application/json'
}
};
const req = http.request(options, (res) => {
console.log(`STATUS: ${res.statusCode}`);
res.on('data', (d) => {
process.stdout.write(d);
});
});
req.on('error', (e) => {
console.error(`problem with request: ${e.message}`);
});
req.write(JSON.stringify({ email: 'admin@scoreodonto.com', password: 'admin' }));
req.end();
};
testLogin();