Guest User

Untitled

a guest
Jul 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. import axios from "axios"
  2. export default {
  3. user:{
  4. login:(credentials)=>{return axios.post("http://localhost:8080/api/login",credentials).then(res=>console.log(res))}
  5. }
  6. }
  7.  
  8. w.Header().Set("Content-Type", "application/json; charset=UTF-8")
  9. w.Header().Set("Access-Control-Allow-Origin", "*")
Add Comment
Please, Sign In to add comment