Files
agologum/client/src/api/UsersApi.ts
Blitblank f271ff59f8
All checks were successful
Build and Deploy Frontend / build-and-deploy (push) Successful in 7s
Build and Deploy API / build-and-deploy (push) Successful in 10s
added userDtos
2026-03-28 00:01:45 -05:00

12 lines
342 B
TypeScript

import api from "./axios.ts"
import type { UserDto } from "../models/User.ts";
const API_URL: string = "/users";
export const getUsers = () => api.get<UserDto[]>(`${API_URL}`);
export const getUser = (id: string) => api.get<UserDto>(`${API_URL}/${id}`);
export const deleteUser = (id: string) => api.delete<UserDto>(`${API_URL}/${id}`);