chore: update request base url

This commit is contained in:
Steven
2024-02-04 23:48:26 +08:00
parent be899cd027
commit 15c90871d9
3 changed files with 34 additions and 1 deletions

View File

@ -1,6 +1,9 @@
import axios from "axios";
import { Resource } from "@/types/proto/api/v2/resource_service";
axios.defaults.baseURL = import.meta.env.VITE_API_BASE_URL || window.location.origin;
axios.defaults.withCredentials = true;
export function getSystemStatus() {
return axios.get<SystemStatus>("/api/v1/status");
}