Advertisement
Guest User

Untitled

a guest
Feb 17th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         const APIFile = "/send";
  2.  
  3.         let data = JSON.stringify({
  4.           name: this.name,
  5.           email: this.email,
  6.           message: this.message
  7.         });
  8.         console.log(data);
  9.  
  10.         axios.post(APIFile, data, {
  11.           headers: {
  12.             "Content-Type": "application/json"
  13.           }
  14.         });
  15.  
  16.  
  17. _____________________________________________
  18.  
  19. plik config/index.js:
  20.  
  21.     proxyTable: {
  22.       '/send': {
  23.         target: 'http://localhost:8012/portfolio/static/php/mail.php',
  24.         changeOrigin: true
  25.       }
  26.     },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement