mirror of
https://github.com/20kaushik02/spotify-manager-web.git
synced 2025-12-06 08:14:07 +00:00
16 lines
302 B
TypeScript
16 lines
302 B
TypeScript
import axios from "axios";
|
|
import { backendDomain } from "./paths";
|
|
|
|
export const axiosInstance = axios.create({
|
|
baseURL: backendDomain,
|
|
withCredentials: true,
|
|
headers: {
|
|
"Content-Type": "application/json",
|
|
},
|
|
});
|
|
|
|
export interface apiRespBaseType {
|
|
message?: string;
|
|
errors?: any[];
|
|
}
|