File size: 357 Bytes
7f6dd09
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import axios from 'axios';

async function testInsert() {
  try {
    const res = await axios.post('http://localhost:3001/api/jobs', {
      company_name: "Test Company",
      user_email: "hello@gmail.com"
    });
    console.log("Success:", res.data);
  } catch (err) {
    console.error("Error:", err.response?.data || err.message);
  }
}

testInsert();