Files
ContentGen_BE/check_login2.js
T
Harun CAN 58832e99d1
Backend Deploy 🚀 / build-and-deploy (push) Has been cancelled
main
2026-05-09 05:57:56 +02:00

15 lines
348 B
JavaScript

const axios = require('axios');
async function main() {
try {
const res = await axios.post('http://localhost:3000/api/v1/auth/login', {
email: 'admin@contentgen.ai',
password: 'password123'
});
console.log(JSON.stringify(res.data, null, 2));
} catch(e) {
console.error(e.response?.data || e.message);
}
}
main();