SHARE
TWEET

Untitled

a guest Feb 17th, 2019 56 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.     },
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top