diff --git a/controllers/updateController.go b/controllers/updateController.go index ec755b9..f761831 100644 --- a/controllers/updateController.go +++ b/controllers/updateController.go @@ -745,6 +745,13 @@ func UpdateTeacherPassword(c *fiber.Ctx) error { }) } +func ResetTeacherPassword(c *fiber.Ctx) error { + return c.Status(fiber.StatusNotImplemented).JSON(fiber.Map{ + "success": nil, + "message": "not implimented", + }) +} + func UpdateTeacherAddress(c *fiber.Ctx) error { return c.Status(fiber.StatusNotImplemented).JSON(fiber.Map{ "success": nil, diff --git a/routes/routes.go b/routes/routes.go index f8a5def..3d65e16 100644 --- a/routes/routes.go +++ b/routes/routes.go @@ -22,6 +22,7 @@ func Setup(app *fiber.App) { app.Post("/api/studnet/updateYOG", controllers.UpdateStudentYOG) app.Post("/api/studnet/updateContacts", controllers.UpdateStudentContacts) app.Post("/api/student/updatePassword", controllers.UpdateStudentPassword) + app.Post("/api/student/resetPassword", controllers.ResetStudentPassword) app.Post("/api/student/updateAddress", controllers.UpdateStudentAddress) app.Post("/api/student/updatePhoto", controllers.UpdateStudentPhoto) app.Post("/api/student/updateEmail", controllers.UpdateStudentEmail) @@ -47,6 +48,7 @@ func Setup(app *fiber.App) { app.Post("/api/teacher/updateName", controllers.UpdateTeacherName) app.Post("/api/teacher/updateHomeroom", controllers.UpdateTeacherHomeroom) app.Post("/api/teacher/updateEmail", controllers.UpdateTeacherEmail) + app.Post("/api/teacher/resetPassword", controllers.ResetTeacherPassword) // General Routes app.Post("/api/logout", controllers.Logout) @@ -58,4 +60,5 @@ func Setup(app *fiber.App) { // General Command Handling app.Post("/api/admin/updateLockerCombo", controllers.UpdateLockerCombo) + app.Post("/api/admin/renableStudent", controllers.RemoveStudentsDisabled) }