Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import axios from "axios"
- export default {
- user:{
- login:(credentials)=>{return axios.post("http://localhost:8080/api/login",credentials).then(res=>console.log(res))}
- }
- }
- w.Header().Set("Content-Type", "application/json; charset=UTF-8")
- w.Header().Set("Access-Control-Allow-Origin", "*")
Add Comment
Please, Sign In to add comment