generated from fahricansecer/boilerplate-be
@@ -0,0 +1,14 @@
|
||||
const axios = require('axios');
|
||||
|
||||
async function main() {
|
||||
try {
|
||||
const res = await axios.post('http://localhost:3000/api/auth/login', {
|
||||
email: 'admin@contentgen.ai',
|
||||
password: 'admin123'
|
||||
});
|
||||
console.log(JSON.stringify(res.data, null, 2));
|
||||
} catch(e) {
|
||||
console.error(e.response?.data || e.message);
|
||||
}
|
||||
}
|
||||
main();
|
||||
Reference in New Issue
Block a user