moved to /dispatch and fixed Voice chat

This commit is contained in:
PxlLoewe
2025-04-15 19:43:06 -07:00
parent d0c779b66e
commit fd4be984b0
35 changed files with 658 additions and 49 deletions

View File

@@ -0,0 +1,18 @@
"use server";
export interface Dispatcher {
userId: string;
lastSeen: string;
loginTime: string;
logoffTime: string;
selectedZone: string;
name: string;
socketId: string;
}
export const getDispatcher = async () => {
const res = await fetch(`
${process.env.NEXT_PUBLIC_DISPATCH_SERVER_URL}/dispatcher`);
const data = await res.json();
return data as Dispatcher[];
};