export baseUrl
This commit is contained in:
parent
10b6ebebe7
commit
3b419fa99b
@ -1,4 +1,4 @@
|
||||
const baseUrl = import.meta.env.VITE_BASE_URL as string;
|
||||
export const baseUrl = import.meta.env.VITE_BASE_URL as string;
|
||||
export default async function api(path: string, data: any): Promise<any> {
|
||||
const request = new Request(`${baseUrl}${path}/`, {
|
||||
method: "POST",
|
||||
|
Loading…
x
Reference in New Issue
Block a user