import {logResource} from "@/service"; import axios from "axios"; import {CharacterControllerApi, LedgerControllerApi, RuleBookControllerApi} from "@/generated/mammon"; export const mammonUrl = import.meta.env.VITE_MAMMON_URL; export const mammonAddCharacterUrl = mammonUrl + "oauth2/authorization/esi" const mammonAxiosInstance = axios.create({ baseURL: mammonUrl, headers: { 'Accept': 'application/json', "Content-Type": "application/json", }, }) logResource(mammonAxiosInstance) export const ledgerControllerApi = new LedgerControllerApi(undefined, mammonUrl, mammonAxiosInstance); export const characterControllerApi = new CharacterControllerApi(undefined, mammonUrl, mammonAxiosInstance); export const ruleBookControllerApi = new RuleBookControllerApi(undefined, mammonUrl, mammonAxiosInstance);