Changed API URL for login

This commit is contained in:
Torsten Schulz
2024-09-04 11:00:24 +02:00
parent 4188f3c8f6
commit 6982be9d97

View File

@@ -24,7 +24,7 @@ export default {
...mapActions(['login']),
async executeLogin() {
try {
const response = await axios.post('http://localhost:3000/api/auth/login', { email: this.email, password: this.password }, {
const response = await axios.post(`${process.env.BACKEND}/api/auth/login`, { email: this.email, password: this.password }, {
timeout: 5000,
});
await this.login({ token: response.data.token, username: this.email });