added inpu elemts and backend API routes for changing the item table

This commit is contained in:
2025-09-11 16:40:31 +02:00
parent e198fce791
commit 755ebfd06b
4 changed files with 97 additions and 3 deletions

View File

@@ -156,3 +156,16 @@ export const createItem = async (
return { success: false };
}
};
export const handleEditItems = async (
itemId: number,
item_name: string,
can_borrow_role: string
) => {
try {
// write the logic for editing an item
} catch (error) {
console.error("Error editing item:", error);
return { success: false };
}
};