Commit c1ec9c9b authored by Nadson Santana Silva's avatar Nadson Santana Silva

correção das requisições realizadas pelo axios

parent c0d51be7
......@@ -6,7 +6,7 @@
"license": "MIT",
"private": true,
"scripts": {
"dev": "vue-cli-service serve",
"dev": "vue-cli-service serve --port 4200",
"build": "vue-cli-service build"
},
"dependencies": {
......
......@@ -2,7 +2,7 @@ import {http} from './config'
export default {
realizarAssinatura: (assinatura) => {
return http.post('localhost:8080/usuario/', assinatura)
return http.post('usuario/', assinatura)
},
buscarCep(cep) {
......
import axios from 'axios'
export const http = axios.create({
baseURL: 'http://localhost:8080/api/'
baseURL: 'http://localhost:8080/'
})
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment