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.

15 lines
427 B

  1. import { Routes } from "../routes/Routes";
  2. import { createApiHeaders } from "./util";
  3. import { AdminUserDTO } from "../dto/AdminUserDTO";
  4. export async function getOtherUsers(
  5. authToken: string
  6. ): Promise<AdminUserDTO[]> {
  7. const response = await fetch(Routes.Admin.getOtherUsers, {
  8. method: "GET",
  9. headers: createApiHeaders(authToken),
  10. });
  11. let data = (await response.json()) as AdminUserDTO[];
  12. return data;
  13. }