Spaces:
Running
Running
File size: 313 Bytes
96c0248 | 1 2 3 4 5 6 7 8 9 | import { api } from "./client";
import type { PortalUser } from "../types";
export const listUsers = async () => (await api.get<PortalUser[]>("/users")).data;
export const createUser = async (input: { username: string; password: string; role: string }) =>
(await api.post<PortalUser>("/users", input)).data;
|