Skip to content
Snippets Groups Projects
Commit ad7ff40d authored by Marc Borkowski's avatar Marc Borkowski
Browse files

outsourced api endpoint to .env

parent 0c59269d
Branches
Tags v0.1.0
No related merge requests found
VUE_APP_API_ADRESS=http://172.16.42.195:8000/api/v1
\ No newline at end of file
import axios from 'axios';
axios.defaults.baseURL = 'http://172.16.42.195:8000/api/v1';
axios.defaults.baseURL = process.env.VUE_APP_API_ADRESS;
const signin = async (username, password) => {
const respond = await axios.post('/api-token-auth/', {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment