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 @@ ...@@ -6,7 +6,7 @@
"license": "MIT", "license": "MIT",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vue-cli-service serve", "dev": "vue-cli-service serve --port 4200",
"build": "vue-cli-service build" "build": "vue-cli-service build"
}, },
"dependencies": { "dependencies": {
......
...@@ -2,7 +2,7 @@ import {http} from './config' ...@@ -2,7 +2,7 @@ import {http} from './config'
export default { export default {
realizarAssinatura: (assinatura) => { realizarAssinatura: (assinatura) => {
return http.post('localhost:8080/usuario/', assinatura) return http.post('usuario/', assinatura)
}, },
buscarCep(cep) { buscarCep(cep) {
......
import axios from 'axios' import axios from 'axios'
export const http = axios.create({ 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