@@ -7,7 +7,7 @@ export type Role = {
|
||||
};
|
||||
|
||||
// @ts-ignore
|
||||
const addr = import.meta.env.BASE_URL;
|
||||
const addr = import.meta.env.VITE_APIHOST;
|
||||
|
||||
export async function getRoles(): Promise<Role[]> {
|
||||
const res = await fetch(`${addr}/roles`)
|
||||
|
||||
Reference in New Issue
Block a user