Files
edr-platform/apps/edr-freight-web/backoffice/src/features/chat/chatApi.ts
2026-08-17 08:02:00 +00:00

14 lines
396 B
TypeScript

import { api } from "@/auth/http";
/**
* Internal chat (Matrix/Element) REST calls. Just the one endpoint — Chat
* itself is a separate app (chat.edr.et); this backoffice only ever asks for
* a fresh sign-in link into it.
*/
export const chatApi = {
getSsoUrl: async (): Promise<string> => {
const { data } = await api.get<{ url: string }>("/chat/sso");
return data.url;
},
};