Spaces:
Running
Running
| 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; | |