A self hosted chat application with end-to-end encrypted messaging.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
import { Routes } from "../routes/Routes"; import { createApiHeaders } from "./util"; import { AdminUserDTO } from "../dto/AdminUserDTO";
export async function getOtherUsers( authToken: string ): Promise<AdminUserDTO[]> { const response = await fetch(Routes.Admin.getOtherUsers, { method: "GET", headers: createApiHeaders(authToken), });
let data = (await response.json()) as AdminUserDTO[]; return data; }
|