added HPG VEhicles Mission, Audio settings; mission Context menu

This commit is contained in:
PxlLoewe
2025-05-24 12:46:11 -07:00
parent b2890b3ecc
commit 1ca6007ac5
28 changed files with 680 additions and 369 deletions

View File

@@ -0,0 +1,12 @@
import { Prisma, User } from "@repo/db";
import axios from "axios";
export const editUserAPI = async (id: string, user: Prisma.UserUpdateInput) => {
const response = await axios.post<User>(`/api/user?id=${id}`, user);
return response.data;
};
export const getUserAPI = async (id: string) => {
const response = await axios.get<User>(`/api/user?id=${id}`);
return response.data;
};