Files
luminic-front/src/plugins/axios.ts
Vladimir Voronin eede3430b0 chet novoe
2024-10-30 12:42:16 +03:00

16 lines
345 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// src/plugins/axios.ts
import axios from 'axios';
// Создание экземпляра axios с базовым URL
const apiClient = axios.create({
// baseURL: 'https://luminic.space/api/v1',
baseURL: 'http://localhost:8000/api/v1',
headers: {
'Content-Type': 'application/json',
}
});
export default apiClient;