setting-page - staffmembers done- no form-ui , no users setting

This commit is contained in:
2025-05-15 13:11:05 +05:30
parent b03b7efcb4
commit 3799568b2d
5 changed files with 536 additions and 1 deletions

View File

@@ -17,7 +17,7 @@ router.post("/", async (req: Request, res: Response): Promise<any> => {
try {
const validatedData = staffCreateSchema.parse(req.body);
const newStaff = await storage.createStaff(validatedData);
res.status(201).json(newStaff);
res.status(200).json(newStaff);
} catch (error) {
console.error("Failed to create staff:", error);
res.status(500).send("Failed to create staff");