mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-06 12:46:29 +00:00
14 lines
309 B
TypeScript
14 lines
309 B
TypeScript
import axios from "axios";
|
|
|
|
export const BASE_URL = process.env.BASE_URL_API
|
|
|
|
export default axios.create({
|
|
baseURL: BASE_URL,
|
|
headers: { "Content-Type": "application/json" },
|
|
});
|
|
|
|
export const axiosAuth = axios.create({
|
|
baseURL: BASE_URL,
|
|
headers: { "Content-Type": "application/json" },
|
|
});
|