mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-31 13:07:38 +00:00
14 lines
396 B
TypeScript
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;
|
|
},
|
|
};
|