checkpoint
All checks were successful
Build and Deploy Frontend / build-and-deploy (push) Successful in 7s

This commit is contained in:
2026-03-27 20:22:17 -05:00
parent 12d1e65ed5
commit 5afd9057f2
6 changed files with 102 additions and 1 deletions

View File

@@ -0,0 +1,11 @@
import api from "./axios.ts"
import type { User } from "../models/User.ts";
const API_URL: string = "/users";
export const getUsers = () => api.get<User[]>(`${API_URL}`);
export const getUser = (id: number) => api.get<User>(`${API_URL}/${id}`);
export const deleteUser = (id: number) => api.delete<User>(`${API_URL}/${id}`);